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

60 lines
9.6 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åf#ãóN—dZddlZddlZddlZddlZddlZddlZddlZgd¢Zdddddœd„Z dddddœd„Z
dd„Z dd „Z dd
„Z
d „Zd „Zdd
„Zd„Zd„Zdd„Zd„Zd„Zd„Zej.d«Zej.d«Zd„Zd„Zd„Zd„Zej<eedd«zZ y)zFilename globbing utility.éN)ÚglobÚiglobÚescapeF©Úroot_dirÚdir_fdÚ recursiveÚinclude_hiddenc ó4—tt|||||¬««S)aßReturn a list of paths matching a pathname pattern.
The pattern may contain simple shell-style wildcards a la
fnmatch. Unlike fnmatch, filenames starting with a
dot are special cases that are not matched by '*' and '?'
patterns by default.
If `include_hidden` is true, the patterns '*', '?', '**' will match hidden
directories.
If `recursive` is true, the pattern '**' will match any files and
zero or more directories and subdirectories.
r)Úlistr)Úpathnamerrr r
s ú@C:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\glob.pyrr
s#€ô ”�h¨¸&ÈIØ%3ô5ó 6ð6ócóT—tjd||«tjd||||«|�tj|«}n|dd}t ||||d|¬«}|r|r5t |dd«r' t
|«}|rtj|f|«}|S|S#t$rY|SwxYw)aŒReturn an iterator which yields the paths matching a pathname pattern.
The pattern may contain simple shell-style wildcards a la
fnmatch. However, unlike fnmatch, filenames starting with a
dot are special cases that are not matched by '*' and '?'
patterns.
If recursive is true, the pattern '**' will match any files and
zero or more directories and subdirectories.
z glob.globz glob.glob/2NrF©r
é)
ÚsysÚauditÚosÚfspathÚ_iglobÚ _isrecursiveÚnextÚ itertoolsÚchainÚ
StopIteration)r
rrr r
ÚitÚss rrrs·€ô‡I�Iˆk˜8 YÔ/܇I�Iˆm˜X y°(¸FÔCØÐÜ—9‘9˜XÓ&‰à˜B˜Q�<ˆÜ �˜( F¨I°uØ-ô
/€Bá ‘y¤\°(¸2¸A°,Ô%?ð Ü�R“ˆAÙÜ—_‘_ a T¨2Ó.�ð €Iˆ2€Iøôò Ø Ø
€Ið úsÁ2$BÂ B'Â&B'c#ó”K—tjj|«\}}t|«s<|rJ‚|rt t ||«|«r|–—yt
t ||«|«r|–—y|s?|r$t|«rt|||||¬«Ed{–—†yt|||||¬«Ed{–—†y||k7rt|«rt||||d|¬«}n|g}t|«r|rt|«rt} n
t} nt} |D]@}| t ||«||||¬«D]$}
tjj||
«–—Œ&ŒBy7Œµ7Œž­w)NrT)
rÚpathÚsplitÚ has_magicÚ_lexistsÚ_joinÚ_isdirrÚ_glob2Ú_glob1rÚ_glob0Újoin) r
rrr Údironlyr
ÚdirnameÚbasenameÚdirsÚ glob_in_dirÚnames rrr<s^èø€äŸ™Ÿ
™
 hÓ/Ñ€GˆXÜ �XÔ ÙЈ{Ù Üœ˜h¨Ó1°6Ô:Ø’ð
ô”e˜H gÓ.°Ô7Ø’ØÙ Ù œ hÔ/ܘh¨°&¸'Ø,:ô<÷
<ð
<ð
ô˜h¨°&¸'Ø-;ô=÷
=ð
=àð�(Òœy¨Ô1Ü�g˜x¨°¸DØ%3ô5‰ðˆyˆÜ�ÔÙ œ hÔ/Ü ‰Kä ‰Käˆ Øò.ˆÙ¤ h°Ó 8¸(ÀFÈGØ.<ô>ò .ˆDä—'‘'—,‘,˜w¨Ó-Ó -ñ .ñ.ð+
<øð
=ús%‚B EÂEÂEÂ'EÂ(BEÅEcóz‡—t|||«}‰s t|«s ˆfd„|D«}tj||«S)Nc3ó>•K—|]}‰s t|«rŒ|–—Œy­w©N)Ú _ishidden)Ú.0Úxr
s €rú <genexpr>z_glob1.<locals>.<genexpr>lsøèø€ÒH�q¡^¼9ÀQ½<”ÑHùsƒ–)Ú_listdirr3ÚfnmatchÚfilter)r+Úpatternrr*r
Únamess ` rr'r'is6ø€Ü �W˜f gÓ .€EÙœY wÔ/ÛH˜EÔHˆÜ �>‰>˜% Ó )Ð)rcó^—|rtt||«|«r|gSgSt||«r|gSgSr2)r#r$r%)r+r,rr*r
s rr(r(os>€ÙÜ ”E˜' 8Ó,¨fÔ 5Ø�:Ð ð €Iô �'˜6Ô "Ø�:Ð Ø
€Ircó—t||dd«S©NF)r(©r+r:s rÚglob0r@|ó€Ü �'˜7 D¨%Ó 0Ð0rcó—t||dd«Sr>)r'r?s rÚglob1rCrArc#ó‚K—t|«sJ‚|r t||«r|dd–—t||||¬«Ed{–—†y7Œ­w)Nrr)rr%Ú _rlistdir)r+r:rr*r
s rr&r&…sGèø€Ü ˜Ô Ð Ð Ù ”f˜W fÔ-Ø�b�qˆkÒܘ &¨'Ø(6ô8÷8ò8ús ‚5?·=¸?c#óžK— d}d}|�D|rtj|t|¬«x}}n|}t|t«rQtj
}n@|r|}n;t|t«rt tj d«}ntj } tj|«5}|D]:} |r|j«r%|�||j«–—n|j–—Œ< ddd«|�tj|«yy#t$rYŒjwxYw#1swYŒ1xYw#|�tj|«wwxYw#t$rYywxYw­w)N©rÚASCII) rÚopenÚ_dir_open_flagsÚ