[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.137.171.71: ~ $
U

��,ab�@spdZddlZddlZddlmZmZddlmZiaddd�Z	dd	d
�Z
ddd�Zd
d�Zddd�Z
dd�ZdS)zWdistutils.dir_util

Utility functions for manipulating directories and directory trees.�N)�DistutilsFileError�DistutilsInternalError)�log��cCsft|t�std|f��tj�|�}g}tj�|�s<|dkr@|St�tj�	|��rV|Stj�
|�\}}|g}|r�|r�tj�|�s�tj�
|�\}}|�d|�ql|D]�}tj�||�}tj�	|�}	t�|	�r�q�|dkr�t
�d|�|�sXzt�||�WnVtk
�rL}
z6|
jtjk�r&tj�|��s<td||
jdf��W5d}
~
XYnX|�|�dt|	<q�|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)�rrzcreating %szcould not create '%s': %s���N)�
isinstance�strr�os�path�normpath�isdir�
_path_created�get�abspath�split�insert�joinr�info�mkdir�OSError�errnoZEEXISTr�args�append)�name�mode�verbose�dry_runZcreated_dirs�head�tailZtails�dZabs_head�exc�r#�7/opt/alt/python38/lib64/python3.8/distutils/dir_util.py�mkpathsB
�
�

r%c	CsNt�}|D] }|�tj�|tj�|���q
t|�D]}t||||d�q4dS)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�addrrr�dirname�sortedr%)Zbase_dir�filesrrrZneed_dir�file�dirr#r#r$�create_treePs
r.c
Cs^ddlm}|s(tj�|�s(td|��zt�|�}	Wn>tk
rt}
z |rRg}	ntd||
jf��W5d}
~
XYnX|s�t	||d�g}|	D]�}tj�
||�}
tj�
||�}|�d�r�q�|�r
tj�|
��r
t�
|
�}|dkr�t�d	||�|s�t�||�|�|�q�tj�|
��r8|�t|
|||||||d
��q�||
||||||d
�|�|�q�|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)rz.nfsrzlinking %s -> %sr&)Zdistutils.file_utilr/rrrr�listdirr�strerrorr%r�
startswith�islink�readlinkrr�symlinkr�extend�	copy_tree)�srcZdstZ
preserve_modeZpreserve_timesZpreserve_symlinks�updaterrr/�names�eZoutputs�nZsrc_nameZdst_nameZ	link_destr#r#r$r7cs\��

���r7cCsft�|�D]F}tj�||�}tj�|�r@tj�|�s@t||�q
|�tj|f�q
|�tj	|f�dS)zHelper for remove_tree().N)
rr0rrrr3�_build_cmdtupler�remove�rmdir)r�	cmdtuples�fZreal_fr#r#r$r=�sr=cCs�|dkrt�d|�|rdSg}t||�|D]h}z2|d|d�tj�|d�}|tkrbt|=Wq.tk
r�}zt�d||�W5d}~XYq.Xq.dS)z�Recursively 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)	rrr=rrrrr�warn)Z	directoryrrr@�cmdrr"r#r#r$�remove_tree�s

rDcCs6tj�|�\}}|dd�tjkr2||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)rr�
splitdrive�sep)rZdriver#r#r$�ensure_relative�srG)rrr)rrr)rrrrrr)rr)�__doc__rrZdistutils.errorsrrZ	distutilsrrr%r.r7r=rDrGr#r#r#r$�<module>s 
?
�
E



Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 399 B 0644
__init__.cpython-38.opt-2.pyc File 217 B 0644
__init__.cpython-38.pyc File 399 B 0644
_msvccompiler.cpython-38.opt-1.pyc File 12.62 KB 0644
_msvccompiler.cpython-38.opt-2.pyc File 11.5 KB 0644
_msvccompiler.cpython-38.pyc File 12.68 KB 0644
archive_util.cpython-38.opt-1.pyc File 6.4 KB 0644
archive_util.cpython-38.opt-2.pyc File 4.41 KB 0644
archive_util.cpython-38.pyc File 6.4 KB 0644
bcppcompiler.cpython-38.opt-1.pyc File 6.38 KB 0644
bcppcompiler.cpython-38.opt-2.pyc File 6.1 KB 0644
bcppcompiler.cpython-38.pyc File 6.38 KB 0644
ccompiler.cpython-38.opt-1.pyc File 32.41 KB 0644
ccompiler.cpython-38.opt-2.pyc File 16.48 KB 0644
ccompiler.cpython-38.pyc File 32.53 KB 0644
cmd.cpython-38.opt-1.pyc File 13.64 KB 0644
cmd.cpython-38.opt-2.pyc File 7.91 KB 0644
cmd.cpython-38.pyc File 13.64 KB 0644
config.cpython-38.opt-1.pyc File 3.44 KB 0644
config.cpython-38.opt-2.pyc File 3.06 KB 0644
config.cpython-38.pyc File 3.44 KB 0644
core.cpython-38.opt-1.pyc File 6.47 KB 0644
core.cpython-38.opt-2.pyc File 3.17 KB 0644
core.cpython-38.pyc File 6.47 KB 0644
cygwinccompiler.cpython-38.opt-1.pyc File 8.42 KB 0644
cygwinccompiler.cpython-38.opt-2.pyc File 6.83 KB 0644
cygwinccompiler.cpython-38.pyc File 8.42 KB 0644
debug.cpython-38.opt-1.pyc File 209 B 0644
debug.cpython-38.opt-2.pyc File 209 B 0644
debug.cpython-38.pyc File 209 B 0644
dep_util.cpython-38.opt-1.pyc File 2.67 KB 0644
dep_util.cpython-38.opt-2.pyc File 1.25 KB 0644
dep_util.cpython-38.pyc File 2.67 KB 0644
dir_util.cpython-38.opt-1.pyc File 5.7 KB 0644
dir_util.cpython-38.opt-2.pyc File 3.38 KB 0644
dir_util.cpython-38.pyc File 5.7 KB 0644
dist.cpython-38.opt-1.pyc File 33.7 KB 0644
dist.cpython-38.opt-2.pyc File 24.63 KB 0644
dist.cpython-38.pyc File 33.7 KB 0644
errors.cpython-38.opt-1.pyc File 5.14 KB 0644
errors.cpython-38.opt-2.pyc File 2.65 KB 0644
errors.cpython-38.pyc File 5.14 KB 0644
extension.cpython-38.opt-1.pyc File 6.78 KB 0644
extension.cpython-38.opt-2.pyc File 3.37 KB 0644
extension.cpython-38.pyc File 6.78 KB 0644
fancy_getopt.cpython-38.opt-1.pyc File 10.28 KB 0644
fancy_getopt.cpython-38.opt-2.pyc File 7.54 KB 0644
fancy_getopt.cpython-38.pyc File 10.42 KB 0644
file_util.cpython-38.opt-1.pyc File 5.81 KB 0644
file_util.cpython-38.opt-2.pyc File 3.72 KB 0644
file_util.cpython-38.pyc File 5.81 KB 0644
filelist.cpython-38.opt-1.pyc File 9.56 KB 0644
filelist.cpython-38.opt-2.pyc File 6.76 KB 0644
filelist.cpython-38.pyc File 9.65 KB 0644
log.cpython-38.opt-1.pyc File 2.28 KB 0644
log.cpython-38.opt-2.pyc File 2.22 KB 0644
log.cpython-38.pyc File 2.28 KB 0644
msvc9compiler.cpython-38.opt-1.pyc File 17.06 KB 0644
msvc9compiler.cpython-38.opt-2.pyc File 15.47 KB 0644
msvc9compiler.cpython-38.pyc File 17.11 KB 0644
msvccompiler.cpython-38.opt-1.pyc File 14.39 KB 0644
msvccompiler.cpython-38.opt-2.pyc File 12.85 KB 0644
msvccompiler.cpython-38.pyc File 14.39 KB 0644
spawn.cpython-38.opt-1.pyc File 5 KB 0644
spawn.cpython-38.opt-2.pyc File 3.73 KB 0644
spawn.cpython-38.pyc File 5 KB 0644
sysconfig.cpython-38.opt-1.pyc File 11.87 KB 0644
sysconfig.cpython-38.opt-2.pyc File 8.47 KB 0644
sysconfig.cpython-38.pyc File 11.87 KB 0644
text_file.cpython-38.opt-1.pyc File 8.26 KB 0644
text_file.cpython-38.opt-2.pyc File 3.28 KB 0644
text_file.cpython-38.pyc File 8.26 KB 0644
unixccompiler.cpython-38.opt-1.pyc File 6.83 KB 0644
unixccompiler.cpython-38.opt-2.pyc File 6.22 KB 0644
unixccompiler.cpython-38.pyc File 6.83 KB 0644
util.cpython-38.opt-1.pyc File 15.2 KB 0644
util.cpython-38.opt-2.pyc File 9.45 KB 0644
util.cpython-38.pyc File 15.2 KB 0644
version.cpython-38.opt-1.pyc File 7.11 KB 0644
version.cpython-38.opt-2.pyc File 3.9 KB 0644
version.cpython-38.pyc File 7.15 KB 0644
versionpredicate.cpython-38.opt-1.pyc File 5.03 KB 0644
versionpredicate.cpython-38.opt-2.pyc File 2.61 KB 0644
versionpredicate.cpython-38.pyc File 5.03 KB 0644