§
ŸàAm,…sã óD — d Z ddlZddlZddlZddlZddlZddlZddlZg d¢Zdddddœd„Z dddddœd„Z
dd„Zdd „Zdd
„Z
d„ Zd„ Zdd
„Zd„ Zd„ Zdd„Zd„ Zd„ Zd„ Z ej d¦ « Z ej d¦ « Zd„ Zd„ Zd„ Zd„ Zej eedd¦ « z Z dS )zFilename globbing utility.é N)ÚglobÚiglobÚescapeF©Úroot_dirÚdir_fdÚ recursiveÚinclude_hiddenc óD — t t | ||||¬¦ « ¦ « 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 )Úpathnamer r r r
s ú1/opt/alt/python-internal/lib64/python3.11/glob.pyr r
s2 € õ •�h¨¸&ÈIØ%3ð5ñ 5ô 5ñ 6ô 6ð 6ó c óv — t j d| |¦ « t j d| |||¦ « |�t j |¦ « }n
| dd… }t | |||d|¬¦ « }| r|rPt | dd… ¦ « r9 t
|¦ « }|rt j |f|¦ « }n# t $ r Y nw xY w|S )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.globzglob.glob/2Nr F©r
é )
ÚsysÚauditÚosÚfspathÚ_iglobÚ_isrecursiveÚnextÚ itertoolsÚchainÚ
StopIteration)r
r r r r
ÚitÚss r r r sì € õ „Iˆk˜8 YÑ/Ô/Ð/Ý„Iˆm˜X y°(¸FÑCÔCÐCØÐÝ”9˜XÑ&Ô&ˆˆà˜B˜Q˜B”<ˆÝ �˜( F¨I°uØ-ð
/ñ
/ô
/€Bàð �yð ¥\°(¸2¸A¸2´,Ñ%?Ô%?ð ð Ý�R‘”ˆAØð
/Ý”_ a T¨2Ñ.Ô.�øøÝð ð ð ØˆDð øøøà
€Is Â'B) Â)
B6Â5B6c # óô K — t j | ¦ « \ }}t | ¦ « sM|rJ ‚|r#t t || ¦ « |¦ « r| V — n"t
t ||¦ « |¦ « r| V — d S |sH|r*t |¦ « rt |||||¬¦ « E d {V —† nt |||||¬¦ « E d {V —† d S || k r%t |¦ « rt ||||d|¬¦ « }n|g}t |¦ « r!|rt |¦ « rt } nt } nt } |D ]E} | t ||¦ « ||||¬¦ « D ]$}
t j ||
¦ « V — Œ%ŒFd S )Nr T)
r ÚpathÚsplitÚ has_magicÚ_lexistsÚ_joinÚ_isdirr Ú_glob2Ú_glob1r Ú_glob0Újoin)r
r r r Údironlyr
ÚdirnameÚbasenameÚdirsÚglob_in_dirÚnames r r r <