Viewing File: /opt/alt/python311/lib64/python3.11/__pycache__/genericpath.cpython-311.opt-1.pyc
fo p d Z ddlZddlZg dZd Zd Zd Zd Zd Zd Z d
Z
d Zd Zd
Z
d Zd Zd 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)commonprefixexistsgetatimegetctimegetmtimegetsizeisdirisfilesamefilesameopenfilesamestatc b t j | n# t t f$ r Y dS w xY wdS )zDTest whether a path exists. Returns False for broken symbolic linksFT)osstatOSError
ValueError)paths 2/opt/alt/python311/lib64/python3.11/genericpath.pyr r sB
Z uu4 ,,c t j | }n# t t f$ r Y dS w xY wt j |j S )z%Test whether a path is a regular fileF)r r r r S_ISREGst_mode)r sts r r
r
sO
WT]]Z uu<
###r c t j | }n# t t f$ r Y dS w xY wt j |j S )z<Return true if the pathname refers to an existing directory.F)r r r r S_ISDIRr )sr s r r r ' sO
WQZZZ uu<
###r c 4 t j | j S )z1Return the size of a file, reported by os.stat().)r r st_sizefilenames r r r 0 s
78$$ c 4 t j | j S )zCReturn the last modification time of a file, reported by os.stat().)r r st_mtimer s r r r 5
78%%r! c 4 t j | j S )z=Return the last access time of a file, reported by os.stat().)r r st_atimer s r r r : r$ r! c 4 t j | j S )zAReturn the metadata change time of a file, reported by os.stat().)r r st_ctimer s r r r ? r$ r! c 6 | sdS t | d t t f s't t t j | } t
| }t | }t | D ]\ }}||| k r|d| c S |S )zGGiven a list of pathnames, returns the longest common leading component r N)
isinstancelisttuplemapr fspathminmax enumerate)ms1s2ics r r r E s RR
adT5M** %#bi##$$ QB QB"
11::bqb6MMM
Ir! c B | j |j k o| j |j k S )z5Test whether two stat buffers reference the same file)st_inost_dev)r4 r5 s r r
r
W s$ I"