%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/__pycache__/genericpath.cpython-38.pyc

U

nao@sdZddlZddlZddddddd	d
ddd
gZddZdd
Zdd	ZddZddZddZ	ddZ
ddZdd
ZddZ
ddZddZddZdS)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sameopenfilesamestatc	Cs.zt|Wnttfk
r(YdSXdS)zDTest whether a path exists.  Returns False for broken symbolic linksFT)osstatOSError
ValueError)pathr'/usr/local/lib/python3.8/genericpath.pyrs
c	Cs6zt|}Wnttfk
r(YdSXt|jS)z%Test whether a path is a regular fileF)r
rrrS_ISREGst_mode)rstrrrr	s
c	Cs6zt|}Wnttfk
r(YdSXt|jS)z<Return true if the pathname refers to an existing directory.F)r
rrrS_ISDIRr)srrrrr's
cCst|jS)z1Return the size of a file, reported by os.stat().)r
rst_sizefilenamerrrr0scCst|jS)zCReturn the last modification time of a file, reported by os.stat().)r
rst_mtimerrrrr5scCst|jS)z=Return the last access time of a file, reported by os.stat().)r
rst_atimerrrrr:scCst|jS)zAReturn the metadata change time of a file, reported by os.stat().)r
rst_ctimerrrrr?scCsl|sdSt|dttfs*tttj|}t|}t|}t|D]$\}}|||krB|d|SqB|S)zGGiven a list of pathnames, returns the longest common leading componentrN)	
isinstancelisttuplemapr
fspathminmax	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.
    )r
rr)f1f2r)r*rrrr
^s

cCst|}t|}t||S)z:Test whether two open file objects reference the same file)r
fstatr)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

rH)__doc__r
r__all__rr	rrrrrrrr
rr>rHrrrr<module>s.
	


Zerion Mini Shell 1.0