/go n d dl Z d dlZg dZd Zd Zd Zd Zd Zd Zd Z d
Z
d Zd Zd
Z
d Zd ZdS ) N)commonprefixexistsgetatimegetctimegetmtimegetsizeisdirisfilesamefilesameopenfilesamestatc d t j | n# t t f$ r Y dS w xY wdS )NFT)osstatOSError
ValueError)paths 2/opt/alt/python311/lib64/python3.11/genericpath.pyr r sE N
Z uu4 --c t j | }n# t t f$ r Y dS w xY wt j |j S NF)r r r r S_ISREGst_mode)r sts r r
r
sR /
WT]]Z uu<
###r c t j | }n# t t f$ r Y dS w xY wt j |j S r )r r r r S_ISDIRr )sr s r r r ' sR F
WQZZZ uu<
###r c 6 t j | j S N)r r st_sizefilenames r r r 0 s ;
78$$ c 6 t j | j S r )r r st_mtimer! s r r r 5 s M
78%%r# c 6 t j | j S r )r r st_atimer! s r r r : s G
78%%r# c 6 t j | j S r )r r st_ctimer! s r r r ? s K
78%%r# c 8 | sdS t | d t t f s't t t j | } t
| }t | }t | D ]\ }}||| k r|d | c S |S )N r )
isinstancelisttuplemapr fspathminmax enumerate)ms1s2ics r r r E s MRR
adT5M** %#bi##$$ QB QB"
11::bqb6MMM
Ir# c D | j |j k o| j |j k S r )st_inost_dev)r5 r6 s r r
r
W s' ?I"
#I"$r# c t t j | }t j | }t || S r )r r r
)f1f2r5 r6 s r r r ^ s3
B BBr# c t t j | }t j | }t || S r )r fstatr
)fp1fp2r5 r6 s r r r k s/ D #B #BBr# c @ | | }|r%| | }t || }| | }||k r;|dz }||k r0| ||dz |k r| d | | |d fS |dz
}||k 0| | d d fS )N r )rfindr2 )psepaltsepextsepsepIndexaltsepIndexdotIndex
filenameIndexs r _splitextrN y s ? wws||H
.ggfoox--wwvH( 1
h&&}Q./699(|Qxyy\11QM h&&
ae8Or# c dx}}|D ]P}t |t rd}t |t rd}2t | d|j j d |r|rt d d d S d S )NFTz;() argument must be str, bytes, or os.PathLike object, not z.Can't mix strings and bytes in path components)r, strbytes TypeError __class____name__)funcnameargshasstrhasbytesr s r _check_arg_typesrY s FX
[ [a [FF
5
!
! [HHx P P78{7KP P Q QVZ
[
T( THIItST T T Tr# )r r __all__r r
r r r r r r r
r r rN rY r# r