Files
952-11/env/python/dll/Python312/Lib/__pycache__/genericpath.cpython-312.pyc
T

40 lines
6.1 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åf\ãót—dZddlZddlZgd¢Zd„Zd„Zd„Zd„Zd„Zd „Z d
„Z
d „Z d „Z d
„Z
d„Zd„Zd„Zd„Zy)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ÚislinkÚsamefileÚ sameopenfileÚsamestatcóZ— tj|«y#ttf$rYywxYw)zDTest whether a path exists. Returns False for broken symbolic linksFT)ÚosÚstatÚOSErrorÚ
ValueError)Úpaths úGc:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\genericpath.pyrrs0€ðÜ
�‰�Œ
ð øô
”ZÐ òÙðús ‚˜*©*có–— tj|«}tj|j
«S#ttf$rYywxYw)z%Test whether a path is a regular fileF)rrrrÚS_ISREGÚst_mode©rÚsts rr
r
sB€ðÜ
�W‰W�T‹]ˆô �<‰<˜Ÿ
™
Ó #Ð#øô
”ZÐ òÙðúó‚6AÁAcó–— tj|«}tj|j
«S#ttf$rYywxYw)z<Return true if the pathname refers to an existing directory.F)rrrrÚS_ISDIRr)Úsrs rr r 'sB€ðÜ
�W‰W�Q‹Zˆô �<‰<˜Ÿ
™
Ó #Ð#øô
”ZÐ òÙðúrcó — tj|«}t j |j«S#tttf$rYywxYw)z&Test whether a path is a symbolic linkF)rÚlstatrrÚAttributeErrorrÚS_ISLNKrrs rr r 3sD€ðÜ
�X‰X�d‹^ˆô �<‰<˜Ÿ
™
Ó #Ð#øô
”Z¤Ð 0òÙðús‚6A
Á A
có@—tj|«jS)z1Return the size of a file, reported by os.stat().)rrÚst_size©Úfilenames rrr<s€ä
�7‰7�8Ó × $Ñ $Ð$ócó@—tj|«jS)zCReturn the last modification time of a file, reported by os.stat().)rrÚst_mtimer%s rrrAó€ä
�7‰7�8Ó × %Ñ %Ð%r'có@—tj|«jS)z=Return the last access time of a file, reported by os.stat().)rrÚst_atimer%s rrrFr*r'có@—tj|«jS)zAReturn the metadata change time of a file, reported by os.stat().)rrÚst_ctimer%s rrrKr*r'cóô—|syt|dttf«s#tttj
|««}t
|«}t|«}t|«D]\}}|||k7sŒ|d|cS|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Úcs rrrQsv€á �Rô
�a˜‘dœT¤5˜MÔ *Ü ”#”b—i‘i Ó#Ó $ˆÜ ˆQ‹€BÜ ˆQ‹€Bܘ"“
ò‰ˆˆ1Ø ��1‘‹:Ø�b�q�6ŠMðð €Ir'cój—|j|jk(xr|j|jk(S)z5Test whether two stat buffers reference the same file)Úst_inoÚst_dev)r:r;s rrrcs,€à �I‰I˜Ÿ™Ñ "ò
#Ø �I‰I˜Ÿ™Ñ "ð$r'cón—tj|«}tj|«}t||«S)zÕTest whether two pathnames reference the same actual file or directory