python (3.12.0)

(root)/
lib/
python3.12/
__pycache__/
genericpath.cpython-312.pyc

ˑetdZddlZddlZgdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZy)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)commonprefixexistsgetatimegetctimegetmtimegetsizeisdirisfileislinksamefilesameopenfilesamestatcZ	tj|y#ttf$rYywxYw)zDTest whether a path exists.  Returns False for broken symbolic linksFT)osstatOSError
ValueError)paths ?/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/genericpath.pyrrs0


Z s**c	tj|}tj|j
S#ttf$rYywxYw)z%Test whether a path is a regular fileF)rrrrS_ISREGst_modersts  rr
r
sB
WWT]<<

##
Z 6AAc	tj|}tj|j
S#ttf$rYywxYw)z<Return true if the pathname refers to an existing directory.F)rrrrS_ISDIRr)srs  rr	r	'sB
WWQZ<<

##
Z rc	tj|}tj|jS#tttf$rYywxYw)z&Test whether a path is a symbolic linkF)rlstatrrAttributeErrorrS_ISLNKrrs  rrr3sD
XXd^<<

##
Z0s6A
A
c@tj|jS)z1Return the size of a file, reported by os.stat().)rrst_sizefilenames rrr<s
778$$$c@tj|jS)zCReturn the last modification time of a file, reported by os.stat().)rrst_mtimer%s rrrA
778%%%r'c@tj|jS)z=Return the last access time of a file, reported by os.stat().)rrst_atimer%s rrrFr*r'c@tj|jS)zAReturn the metadata change time of a file, reported by os.stat().)rrst_ctimer%s rrrKr*r'c|syt|dttfs#tttj
|}t
|}t|}t|D]\}}|||k7s|d|cS|S)zGGiven a list of pathnames, returns the longest common leading componentrN)	
isinstancelisttuplemaprfspathminmax	enumerate)ms1s2ics     rrrQsvR
adT5M*#bii#$	QB	QB"
11:bq6MIr'cj|j|jk(xr|j|jk(S)z5Test whether two stat buffers reference the same file)st_inost_dev)r:r;s  rrrcs,II"
#II"$r'cntj|}tj|}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;s    rrrjs+
B	BBr'cntj|}tj|}t||S)z:Test whether two open file objects reference the same file)rfstatr)fp1fp2r:r;s    rr
r
ws)	#B	#BBr'c|j|}|r|j|}t||}|j|}||kDr*|dz}||kr |||dz|k7r
|d|||dfS|dz
}||kr ||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)rfindr7)psepaltsepextsepsepIndexaltsepIndexdotIndex
filenameIndexs        r	_splitextrSswws|H
ggfox-wwvH( 1
h&}Q/69(|Qxy\11QMh&

ae8Or'cdx}}|D]L}t|trd}t|trd})t|d|jj
d|r|rtddyy)NFTz;() argument must be str, bytes, or os.PathLike object, not z.Can't mix strings and bytes in path components)r1strbytes	TypeError	__class____name__)funcnameargshasstrhasbytesrs     r_check_arg_typesr^sFX
[aF
5
!Hxj)778{{7K7K6NPQVZ
[
[(HItSvr')__doc__rr__all__rr
r	rrrrrrrrr
rSr^r'r<module>rbs`

$$$%
&
&
&$$.Tr'