选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´i?ã@s dZdZdZdZdZdZdZdZdZddl Z ddl Z ddl Z ddl Z dd l Tgd ¢Z d d „Zd d„Zdd„Zdd„Zdd„Zdd„Ze jje_dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%Zdadad&d'„Zd(d)„Z d*d+„Z!d,d-œd.d/„Z"d0d1„Z#e j$d2kZ%d7d3d4„Z&d5d6„Z'dS)8aÙCommon operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this module on Posix systems; on other systems (e.g. Windows), os.path provides the same operations in a manner specific to that platform, and is an alias to another module (e.g. ntpath). Some of this can actually be useful on non-Posix systems too, e.g. for manipulation of the pathname component of URLs. Ú.ú..ú/ú:z /bin:/usr/binNz /dev/nullé)Ú*)'ÚnormcaseÚisabsÚjoinÚ splitdriveÚsplitÚsplitextÚbasenameÚdirnameÚ commonprefixÚgetsizeÚgetmtimeÚgetatimeÚgetctimeÚislinkÚexistsÚlexistsÚisdirÚisfileÚismountÚ expanduserÚ expandvarsÚnormpathÚabspathÚsamefileÚ sameopenfileÚsamestatÚcurdirÚpardirÚsepÚpathsepÚdefpathÚaltsepÚextsepÚdevnullÚrealpathÚsupports_unicode_filenamesÚrelpathÚ commonpathÚ ALLOW_MISSINGcCst|tƒrdSdSdS)Nó/r)Ú isinstanceÚbytes©Úpath©r3ú!/usr/lib64/python3.9/posixpath.pyÚ_get_sep)s r5cCs t |¡S)z6Normalize case of pathname. Has no effect under Posix©ÚosÚfspath)Úsr3r3r4r4srcCst |¡}t|ƒ}| |¡S)zTest whether a path is absolute)r7r8r5Ú startswith)r9r#r3r3r4r<s rc Gs¨t |¡}t|ƒ}|}z^|s,|dd…|ttj|ƒD]8}| |¡rL|}q8|rZ| |¡rd||7}q8|||7}q8Wn.tttfy¢t j d|g|¢RŽ‚Yn0|S)zæJoin two or more pathname components, inserting '/' as needed. If any component is an absolute path, all previous path components will be discarded. An empty last part will result in a path that ends with a separator.Nrr ) r7r8r5Úmapr:ÚendswithÚ TypeErrorÚAttributeErrorÚ BytesWarningÚ genericpathÚ_check_arg_types)ÚaÚpr#r2Úbr3r3r4r Gs    r cCs`t |¡}t|ƒ}| |¡d}|d|…||d…}}|rX||t|ƒkrX| |¡}||fS)z€Split a pathname. Returns tuple "(head, tail)" where "tail" is everything after the final slash. Either part may be empty.éN©r7r8r5ÚrfindÚlenÚrstrip)rCr#ÚiÚheadÚtailr3r3r4r ds  r cCs6t |¡}t|tƒrd}d}nd}d}t ||d|¡S)Nr.ó.rr)r7r8r/r0r@Ú _splitext)rCr#r'r3r3r4r us  r cCst |¡}|dd…|fS)zJSplit a pathname into drive and path. On Posix, drive is always empty.Nrr6)rCr3r3r4r ƒs r cCs,t |¡}t|ƒ}| |¡d}||d…S)z)Returns the final component of a pathnamerEN)r7r8r5rG)rCr#rJr3r3r4r Œs r cCsNt |¡}t|ƒ}| |¡d}|d|…}|rJ||t|ƒkrJ| |¡}|S)z-Returns the directory component of a pathnamerENrF)rCr#rJrKr3r3r4r–s   rc Cs6zt |¡}Wntttfy(YdS0t |j¡S)z&Test whether a path is a symbolic linkF)r7ÚlstatÚOSErrorÚ ValueErrorr>ÚstatÚS_ISLNKÚst_mode)r2Ústr3r3r4r¤s rc Cs,zt |¡Wnttfy&YdS0dS)zCTest whether a path exists. Returns True for broken symbolic linksFT)r7rOrPrQr1r3r3r4r®s rc Cs¼zt |¡}Wnttfy&YdS0t |j¡r8dSt|tƒrNt |dƒ}n t |dƒ}t |ƒ}zt |¡}Wnttfy†YdS0|j }|j }||kr dS|j }|j }||kr¸dSdS)z$Test whether a path is a mount pointFó..rT) r7rOrPrQrRrSrTr/r0r r)Úst_devÚst_ino)r2Ús1ÚparentÚs2Údev1Údev2Úino1Úino2r3r3r4rºs.    rc Cs8t |¡}t|tƒrd}nd}| |¡s,|St|ƒ}| |d¡}|dkrPt|ƒ}|dkr¤dtjvr˜ddl }z|  t  ¡¡j }Wq¢t y”|YS0n tjd}nTddl }|d|…}t|tƒrÌt|dƒ}z| |¡}Wnt yð|YS0|j }t|tƒ�rt |¡}d}nd }| |¡}|||d…�p6|S) zOExpand ~ and ~user constructions. If user or $HOME is unknown, do nothing.ó~ú~rErÚHOMENÚASCIIr.r)r7r8r/r0r:r5ÚfindrHÚenvironÚpwdÚgetpwuidÚgetuidÚpw_dirÚKeyErrorÚstrÚgetpwnamÚfsencoderI) r2Útilder#rJrfÚuserhomeÚnameÚpwentÚrootr3r3r4räsB                rz\$(\w+|\{[^}]*\}?)cs®t |¡}t|tƒrZd|vr |Sts@ddl}| t ¡|j ¡j at}d‰d‰t tddƒ‰n:d|vrf|St s‚ddl}| t|j ¡j a t }d‰d ‰tj ‰‡‡‡fd d „}|||ƒS) zZExpand shell variables of form $var and ${var}. Unknown variables are left unchanged.ó$rNó{ó}Úenvironbú$Ú{Ú}cs€|d}| ˆ¡r0| ˆ¡s$|dS|dd…}z,ˆdurRt tjt |¡¡}nˆ|}Wntyv|dYS0|SdS)NrEréÿÿÿÿ)r:r<r7rmreÚfsdecoderj)ÚmrpÚvalue©ÚendreÚstartr3r4Úrepl4s     zexpandvars..repl)r7r8r/r0Ú_varsubbÚreÚcompileÚ _varpatternÚencodercÚsubÚgetattrÚ_varsubre)r2rƒr‡r�r3r~r4rs,  rc Csôt |¡}t|tƒr&d}d}d}d}nd}d}d}d}||krB|S| |¡}|rp| |d ¡rp| |d ¡spd }| |¡}g}|D]J}|||fvr”q‚||ks´|s¤|r´|rÀ|d |krÀ| |¡q‚|r‚| ¡q‚|}| |¡}|rì|||}|pò|S) z0Normalize path, eliminating double slashes, etc.r.órMrVrÚrréérz) r7r8r/r0r:r ÚappendÚpopr ) r2r#ÚemptyÚdotÚdotdotÚinitial_slashesÚcompsÚ new_compsÚcompr3r3r4rKsJ    ÿ ÿ  ÿ ÿ    rcCs@t |¡}t|ƒs8t|tƒr&t ¡}nt ¡}t||ƒ}t|ƒS)zReturn an absolute path.) r7r8rr/r0ÚgetcwdbÚgetcwdr r)r2Úcwdr3r3r4rrs    rF)ÚstrictcCs,t |¡}t|dd…||iƒ\}}t|ƒS)zlReturn the canonical path of the specified filename, eliminating any symbolic links encountered in the path.Nr)r7r8Ú _joinrealpathr)Úfilenameršr2Úokr3r3r4r)�s r)cCs†t|tƒrd}d}d}nd}d}d}tj}|tur8t}n|rBd}nt}d} t|ƒrb|dd…}|}|�r~| |¡\} } }| rb| |kr†qb| |krº|r´t |ƒ\}} | |kr¸t |||ƒ}qb|}qbt || ƒ} zt  | ¡} Wn|yèd }Yn0t   | j¡}|�s| }qb| |v�r@|| }|du�r qb|�r2t  | ¡nt | |ƒd fSd|| <t|t | ¡||ƒ\}}|�stt ||ƒd fS||| <qb|d fS) Nr.rMrVrrrr3rEFT)r/r0r7r˜r-ÚFileNotFoundErrorrPrÚ partitionr r rOrRrSrTr›Úreadlink)r2ÚrestršÚseenr#r!r"r˜Ú ignored_errorÚmaxlinksrpÚ_ÚnewpathrUÚis_linkr�r3r3r4r›Šsd            r›Údarwinc Csô|s tdƒ‚t |¡}t|tƒr.d}d}d}n d}d}d}|durH|}n t |¡}zrd d „t|ƒ |¡Dƒ}d d „t|ƒ |¡Dƒ}tt||gƒƒ}|gt|ƒ|||d…}|s¼|WSt |ŽWSt t t t fyît d ||¡‚Yn0dS) z#Return a relative version of a pathzno path specifiedrMr.rVrrrNcSsg|] }|r|‘qSr3r3©Ú.0Úxr3r3r4Ú èrŠzrelpath..cSsg|] }|r|‘qSr3r3r©r3r3r4r¬érŠr+)rQr7r8r/r0rr rHrr r=r>r?ÚDeprecationWarningr@rA) r2r€r!r#r"Ú start_listÚ path_listrJÚrel_listr3r3r4r+Òs0    r+c s2|s tdƒ‚tttj|ƒƒ}t|dtƒr4d‰d‰nd‰d‰zćfdd„|Dƒ}zt‡fd d „|Dƒƒ\}Wntyˆtd ƒd ‚Yn0‡fd d„|Dƒ}t|ƒ}t |ƒ}|}t |ƒD]$\}}|||kr¸|d |…}qÞq¸|ræˆn ˆd d…}|ˆ  |¡WSt t f�y,tjdg|¢RŽ‚Yn0d S)zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencerr.rMrrcsg|]}| ˆ¡‘qSr3)r )rªr2©r#r3r4r¬ rŠzcommonpath..c3s|]}|dd…ˆkVqdS)NrEr3)rªrCr±r3r4Ú rŠzcommonpath..z%Can't mix absolute and relative pathsNcsg|]}‡fdd„|Dƒ‘qS)csg|]}|r|ˆkr|‘qSr3r3)rªÚc©r!r3r4r¬rŠz)commonpath...r3)rªr9r´r3r4r¬rŠr,)rQÚtupler;r7r8r/r0ÚsetÚminÚmaxÚ enumerater r=r>r@rA) ÚpathsÚ split_pathsrrYr[ÚcommonrJr³Úprefixr3)r!r#r4r,ûs6   r,)N)(Ú__doc__r!r"r'r#r$r%r&r(r7ÚsysrRr@Ú__all__r5rrr r r rNr r rrrrrr…r‰r‚rrrr)r›Úplatformr*r+r,r3r3r3r4ÚsN        *21' F  )