Wcocsn ddlZddlZgdZdZdZdZdZdZdZd Z d Z d Z d Z d Z dZdZdS)N) commonprefixexistsgetatimegetctimegetmtimegetsizeisdirisfilesamefile sameopenfilesamestatcsh tj|dS#ttf$rYdSwxYw)NFT)osstatOSError ValueError)path $/usr/lib64/python3.12/genericpath.pyrrsGN   4 Z uus 11c tj|}tj|j S#ttf$rYdSwxYwNF)r r rrZS_ISREGst_mode)rst rrrsU/ WWT] << ## Z uu;AAcrr)r r rrZS_ISDIRr)srrrrr'sUF WWQZ << ## Z uurcF tj|jSN)r r Zst_sizeZfilenamerrrr0s; 778  $ $$crr)r r Zst_mtimerrrrr5sM 778  % %%rcrr)r r Zst_atimerrrrr:sG 778  % %%rcrr)r r Zst_ctimerrrrr?sK 778  % %%rcs" |sdSt|dttfs(tttj |}t |}t|}t|D]\}}|||ks|d|cS|S)NZr) isinstanceZlistZtupleZmapr ZfspathZminmaxZ enumerate)Zms1s2ZiZc rrrEsM 1RR adT5M * * #bii# $ QB QB" 1 1::bq6MMM Ircsl |j|jko|j|jkSr)Zst_inoZst_dev)r r!rrr r Ws/? II " # II "$rc| tj|}tj|}t||Sr)r r r )Zf1Zf2r r! rr r ^s0 B B B rcr#r)r Zfstatr )Zfp1Zfp2r r!r$rr r ks,D #B #B B rcs |j|}|r |j|}t||}|j|}||kr-|dz}||kr"|||dz|kr |d|||dfS|dz }||kr"||ddfS)Nir)Zrfindr)ZpZsepZaltsepZextsepZsepIndexZ altsepIndexZdotIndexZ filenameIndexs r _splitextr%ys? wws|H vggfo x-wwvH( 1 h&&}Q/699(|Qxy\11 Q Mh&& ae8Orcsdx}}|D]T}t|trd}t|trd}/t|d|jj d|r|rtdddSdS)NFTz;() argument must be str, bytes, or os.PathLike object, not z.Can't mix strings and bytes in path components)rZstrZbytesZ TypeErrorZ __class__Z__name__)ZfuncnameZargsZhasstrZhasbytesrr"r_check_arg_typesr&sFX [[ a  FF 5 ! !HHxPP78{{7K7KPPQVZ [ v((HItS(vvr)r r Z__all__rrrrrrrrr r r r%r&)rrr's     $$$$$$%%% &&& &&& &&& $$$$. T T T T Tr