• File: genericpath.cpython-38.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python38/lib64/python3.8/__pycache__/genericpath.cpython-38.pyc
  • Date Modified: 10/26/2026 8:15 PM
  • File size: 4.43 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
U

j~@sdZddlZddlZddddddd	d
ddd
dgZddZdd
Zdd	ZddZddZddZ	ddZ
ddZdd
ZddZ
ddZddZddZejGdddZdS)z
Path operations common to more than one OS
Do not use directly.  The OS specific modules import the appropriate
functions from this module themselves.
Ncommonprefixexistsgetatimegetctimegetmtimegetsizeisdirisfilesamefilesameopenfilesamestat
ALLOW_MISSINGc	Cs.zt|Wnttfk
r(YdSXdS)zDTest whether a path exists.  Returns False for broken symbolic linksFT)osstatOSError
ValueError)pathr0/opt/alt/python38/lib64/python3.8/genericpath.pyrs
c	Cs6zt|}Wnttfk
r(YdSXt|jS)z%Test whether a path is a regular fileF)rrrrS_ISREGst_mode)rstrrrr	s
c	Cs6zt|}Wnttfk
r(YdSXt|jS)z<Return true if the pathname refers to an existing directory.F)rrrrS_ISDIRr)srrrrr's
cCst|jS)z1Return the size of a file, reported by os.stat().)rrst_sizefilenamerrrr0scCst|jS)zCReturn the last modification time of a file, reported by os.stat().)rrst_mtimerrrrr5scCst|jS)z=Return the last access time of a file, reported by os.stat().)rrst_atimerrrrr:scCst|jS)zAReturn the metadata change time of a file, reported by os.stat().)rrst_ctimerrrrr?scCsl|sdSt|dttfs*tttj|}t|}t|}t|D]$\}}|||krB|d|SqB|S)zGGiven a list of pathnames, returns the longest common leading componentrN)	
isinstancelisttuplemaprfspathminmax	enumerate)ms1s2icrrrrEscCs|j|jko|j|jkS)z5Test whether two stat buffers reference the same file)st_inost_dev)r*r+rrrrWs
cCst|}t|}t||S)zTest whether two pathnames reference the same actual file or directory

    This is determined by the device number and i-node number and
    raises an exception if an os.stat() call on either pathname fails.
    )rrr)f1f2r*r+rrrr
^s

cCst|}t|}t||S)z:Test whether two open file objects reference the same file)rfstatr)fp1fp2r*r+rrrrks

cCs||}|r"||}t||}||}||krz|d}||krz|||d|krp|d|||dfS|d7}q<||ddfS)zSplit the extension from a pathname.

    Extension is everything from the last dot to the end, ignoring
    leading dots.  Returns "(root, ext)"; ext may be empty.Nr)rfindr')psepaltsepextsepsepIndexaltsepIndexdotIndex
filenameIndexrrr	_splitextys




r?cGs`d}}|D]<}t|tr d}qt|tr0d}qt|d|jjdq|r\|r\tdddS)NFTz;() argument must be str, bytes, or os.PathLike object, not z.Can't mix strings and bytes in path components)r!strbytes	TypeError	__class____name__)funcnameargshasstrhasbytesrrrr_check_arg_typess

rIc@s eZdZdZddZddZdS)r
z$Special value for use in realpath().cCsdS)Nzos.path.ALLOW_MISSINGrselfrrr__repr__szALLOW_MISSING.__repr__cCs|jjS)N)rCrDrJrrr
__reduce__szALLOW_MISSING.__reduce__N)rD
__module____qualname____doc__rLrMrrrrr
s)rPrr__all__rr	rrrrrrrr
rr?rIobject__new__r
rrrr<module>s4