MINI MINI MANI MO

Path : /lib64/python3.6/__pycache__/
File Upload :
Current File : //lib64/python3.6/__pycache__/genericpath.cpython-36.opt-1.pyc

3


 \”ã@sšdZddlZddlZddddddd	d
ddd
gZdd„Zdd
„Zdd	„Zdd„Zdd„Zdd„Z	dd„Z
dd„Zdd
„Zdd„Z
dd„Zdd„Zdd„ZdS)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ÚcommonprefixÚexistsÚgetatimeÚgetctimeÚgetmtimeÚgetsizeÚisdirÚisfileÚsamefileÚsameopenfileÚsamestatcCs(ytj|ƒWntk
r"dSXdS)zDTest whether a path exists.  Returns False for broken symbolic linksFT)ÚosÚstatÚOSError)Úpath©rú#/usr/lib64/python3.6/genericpath.pyrs
cCs0ytj|ƒ}Wntk
r"dSXtj|jƒS)z%Test whether a path is a regular fileF)r
rrÚS_ISREGÚst_mode)rÚstrrrr	s
cCs0ytj|ƒ}Wntk
r"dSXtj|jƒS)z<Return true if the pathname refers to an existing directory.F)r
rrÚS_ISDIRr)Úsrrrrr's
cCstj|ƒjS)z1Return the size of a file, reported by os.stat().)r
rÚst_size)Úfilenamerrrr0scCstj|ƒjS)zCReturn the last modification time of a file, reported by os.stat().)r
rÚst_mtime)rrrrr5scCstj|ƒjS)z=Return the last access time of a file, reported by os.stat().)r
rÚst_atime)rrrrr:scCstj|ƒjS)zAReturn the metadata change time of a file, reported by os.stat().)r
rÚst_ctime)rrrrr?scCsl|sdSt|dttfƒs*tttj|ƒƒ}t|ƒ}t|ƒ}x,t|ƒD] \}}|||krD|d|…SqDW|S)zGGiven a list of pathnames, returns the longest common leading componentÚrN)	Ú
isinstanceÚlistÚtupleÚmapr
ÚfspathÚminÚmaxÚ	enumerate)ÚmÚs1Ús2ÚiÚcrrrrEscCs|j|jko|j|jkS)z5Test whether two stat buffers reference the same file)Úst_inoÚst_dev)r'r(rrrrWscCstj|ƒ}tj|ƒ}t||ƒS)z9Test whether two pathnames reference the same actual file)r
rr)Úf1Úf2r'r(rrrr
^s

cCstj|ƒ}tj|ƒ}t||ƒS)z:Test whether two open file objects reference the same file)r
Úfstatr)Úfp1Úfp2r'r(rrrrgs

cCsŽ|j|ƒ}|r"|j|ƒ}t||ƒ}|j|ƒ}||kr~|d}x@||kr||||d…|krr|d|…||d…fS|d7}q>W||dd…fS)z¤Split 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$)ÚpÚsepÚaltsepÚextsepÚsepIndexÚaltsepIndexÚdotIndexÚ
filenameIndexrrrÚ	_splitextus




r<cGsbd}}xB|D]:}t|tƒr"d}qt|tƒr2d}qtd||jjfƒd‚qW|r^|r^tdƒd‚dS)NFTz*%s() argument must be str or bytes, not %rz.Can't mix strings and bytes in path components)rÚstrÚbytesÚ	TypeErrorÚ	__class__Ú__name__)ÚfuncnameÚargsÚhasstrÚhasbytesrrrrÚ_check_arg_typesŒs


rF)Ú__doc__r
rÚ__all__rr	rrrrrrrr
rr<rFrrrrÚ<module>s$

		

OHA YOOOO