/usr/lib/python3.10/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-310.pyc65080644editdlrm
bcppcompiler.cpython-310.pyc64950644editdlrm
ccompiler.cpython-310.pyc330440644editdlrm
cmd.cpython-310.pyc138950644editdlrm
config.cpython-310.pyc35340644editdlrm
core.cpython-310.pyc66030644editdlrm
cygwinccompiler.cpython-310.pyc84560644editdlrm
debug.cpython-310.pyc1970644editdlrm
dep_util.cpython-310.pyc27180644editdlrm
dir_util.cpython-310.pyc61690644editdlrm
dist.cpython-310.pyc339500644editdlrm
errors.cpython-310.pyc49390644editdlrm
extension.cpython-310.pyc69740644editdlrm
fancy_getopt.cpython-310.pyc105770644editdlrm
filelist.cpython-310.pyc98270644editdlrm
file_util.cpython-310.pyc59230644editdlrm
log.cpython-310.pyc22540644editdlrm
msvc9compiler.cpython-310.pyc175090644editdlrm
msvccompiler.cpython-310.pyc147280644editdlrm
spawn.cpython-310.pyc34140644editdlrm
sysconfig.cpython-310.pyc77710644editdlrm
text_file.cpython-310.pyc84160644editdlrm
unixccompiler.cpython-310.pyc72070644editdlrm
util.cpython-310.pyc156360644editdlrm
version.cpython-310.pyc73060644editdlrm
versionpredicate.cpython-310.pyc51340644editdlrm
_msvccompiler.cpython-310.pyc128280644editdlrm
__init__.cpython-310.pyc6210644editdlrm
Edit: /usr/lib/python3.10/distutils/__pycache__/dir_util.cpython-310.pyc (6169B)
o Šbc¬ ã@s€dZddlZddlZddlmZmZddlmZiaddd„Z dd d „Z ddl Z dZ  dd d „Z d d„Zddd„Zdd„ZdS)zWdistutils.dir_util Utility functions for manipulating directories and directory trees.éN)ÚDistutilsFileErrorÚDistutilsInternalError)Úlogéÿéc Csrt|tƒs td|fƒ‚tj |¡}g}tj |¡s|dkr |St tj  |¡¡r+|Stj  |¡\}}|g}|rX|rXtj |¡sXtj  |¡\}}|  d|¡|rX|rXtj |¡r@|D]\}tj  ||¡}tj  |¡} t | ¡roqZ|dkryt  d|¡|s²zt ||¡Wn)ty¬} z| jtjkr—tj |¡s¢td|| jdfƒ‚WYd} ~ nd} ~ ww| |¡dt| <qZ|S) aìCreate a directory and any missing ancestor directories. If the directory already exists (or if 'name' is the empty string, which means the current directory, which of course exists), then do nothing. Raise DistutilsFileError if unable to create some directory along the way (eg. some sub-path exists, but is a file rather than a directory). If 'verbose' is true, print a one-line summary of each mkdir to stdout. Return the list of directories actually created. z(mkpath: 'name' must be a string (got %r)Úrrz creating %szcould not create '%s': %séÿÿÿÿN)Ú isinstanceÚstrrÚosÚpathÚnormpathÚisdirÚ _path_createdÚgetÚabspathÚsplitÚinsertÚjoinrÚinfoÚmkdirÚOSErrorÚerrnoÚEEXISTrÚargsÚappend) ÚnameÚmodeÚverboseÚdry_runÚ created_dirsÚheadÚtailÚtailsÚdÚabs_headÚexc©r'ú)/usr/lib/python3.10/distutils/dir_util.pyÚmkpathsJ ÿ  þ   ÿ ÿ€ÿ  r)c CsNtƒ}|D]}| tj |tj |¡¡¡qt|ƒD] }t||||dqdS)a­Create all the empty directories under 'base_dir' needed to put 'files' there. 'base_dir' is just the name of a directory which doesn't necessarily exist yet; 'files' is a list of filenames to be interpreted relative to 'base_dir'. 'base_dir' + the directory portion of every file in 'files' will be created if it doesn't already exist. 'mode', 'verbose' and 'dry_run' flags are as for 'mkpath()'. ©rrN)ÚsetÚaddr r rÚdirnameÚsortedr))Úbase_dirÚfilesrrrÚneed_dirÚfileÚdirr'r'r(Ú create_treePs   ÿr4c Csðddlm}|stj |¡std|ƒ‚zt |¡} Wn ty;} z|r(g} n td|| jfƒ‚WYd} ~ nd} ~ wwt   d¡} t   d¡} |   | | dd…¡rTd} nd | dd…| | dd…f} |skt ||d g}| D]†}tj  ||¡}tj  ||¡}| r£| r£|  | ¡r£|  | ¡s£tj  || | | ¡¡}t d || | | ¡¡| d ¡r©qo|rÏtj |¡rÏt |¡}|d krÁt d||¡|sÉt ||¡| |¡qotj |¡rå| t||||||||d¡qo||||||||d| |¡qo|S)aCopy an entire directory tree 'src' to a new location 'dst'. Both 'src' and 'dst' must be directory names. If 'src' is not a directory, raise DistutilsFileError. If 'dst' does not exist, it is created with 'mkpath()'. The end result of the copy is that every file in 'src' is copied to 'dst', and directories under 'src' are recursively copied to 'dst'. Return the list of files that were copied or might have been copied, using their output name. The return value is unaffected by 'update' or 'dry_run': it is simply the list of all files under 'src', with the names changed to be under 'dst'. 'preserve_mode' and 'preserve_times' are the same as for 'copy_file'; note that they only apply to regular files, not to directories. If 'preserve_symlinks' is true, symlinks will be copied as symlinks (on platforms that support them!); otherwise (the default), the destination of the symlink will be copied. 'update' and 'verbose' are the same as for 'copy_file'. r)Ú copy_filez&cannot copy tree '%s': not a directoryzerror listing files in '%s': %sNÚ EXT_SUFFIXÚ MULTIARCHéýÿÿÿz%s-%s%s)rzrenaming extension %s -> %sz.nfsrzlinking %s -> %sr*)Údistutils.file_utilr5r r rrÚlistdirrÚstrerrorÚ sysconfigÚget_config_varÚendswithr)rÚreplacerrÚ startswithÚislinkÚreadlinkÚsymlinkrÚextendÚ copy_tree)ÚsrcÚdstÚ preserve_modeÚpreserve_timesÚpreserve_symlinksÚupdaterrr5ÚnamesÚeÚ ext_suffixÚ _multiarchÚ new_suffixÚoutputsÚnÚsrc_nameÚdst_nameÚ link_destr'r'r(rEfsh ÿ ÿ þ€þ        þÿþ rEcCsft |¡D]#}tj ||¡}tj |¡r tj |¡s t||ƒq| tj|f¡q| tj |f¡dS)zHelper for remove_tree().N) r r:r rrrAÚ_build_cmdtuplerÚremoveÚrmdir)r Ú cmdtuplesÚfÚreal_fr'r'r(rVµs  rVc Csœ|dkr t d|¡|rdSg}t||ƒ|D]4}z|d|dƒtj |d¡}|tvr1t|=WqtyK}z t d||¡WYd}~qd}~wwdS)zRecursively remove an entire directory tree. Any errors are ignored (apart from being reported to stdout if 'verbose' is true). rz'removing '%s' (and everything under it)Nrzerror removing %s: %s) rrrVr r rrrÚwarn)Ú directoryrrrYÚcmdrr&r'r'r(Ú remove_tree¿s$  €€ÿùr_cCs6tj |¡\}}|dd…tjkr||dd…}|S)z†Take the full path 'path', and make it a relative path. This is useful to make 'path' the second argument to os.path.join(). rrN)r r Ú splitdriveÚsep)r Údriver'r'r(Úensure_relative×src)rrr)rrrrrr)rr)Ú__doc__r rÚdistutils.errorsrrÚ distutilsrrr)r4r<rOrErVr_rcr'r'r'r(Ús    ? ÿO