$65 GRAYBYTE WORDPRESS FILE MANAGER $17

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/distutils/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/distutils/__pycache__//dir_util.cpython-34.pyc
�
i fb�@s�dZddlZddlZddlmZmZddlmZiaddddd�Z	dddd	d
�Z
dddddddd�Zd
d�Zdddd�Z
dd�ZdS)zWdistutils.dir_util

Utility functions for manipulating directories and directory trees.�N)�DistutilsFileError�DistutilsInternalError)�logi��cCs�t|t�s%td|f��ntjj|�}g}tjj|�s[|dkr_|Stjtjj	|��r~|Stjj
|�\}}|g}xK|r�|r�tjj|�r�tjj
|�\}}|jd|�q�Wx	|D]}tjj||�}tjj	|�}	tj|	�r6q�n|dkrUt
jd|�n|s�ytj||�Wnitk
r�}
zI|
jtjko�tjj|�s�td||
jdf��nWYdd}
~
XnX|j|�ndt|	<q�W|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': %sN���)�
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/python34/lib64/python3.4/distutils/dir_util.py�mkpaths>	"
$0r$cCsvt�}x6|D].}|jtjj|tjj|���qWx-t|�D]}t||d|d|�qOWdS)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
rr�dirname�sortedr$)Zbase_dir�filesrrrZneed_dir�file�dirr"r"r#�create_treePs
	
,r,cCs�ddlm}|r=tjj|�r=td|��nytj|�}	WnMtk
r�}
z-|rtg}	ntd||
jf��WYdd}
~
XnX|s�t	|d|�ng}x1|	D])}tjj
||�}
tjj
||�}|jd�rq�n|r}tjj|
�r}tj
|
�}|dkrTtjd	||�n|smtj||�n|j|�q�tjj|
�r�|jt|
|||||d|d
|��q�||
||||d|d
|�|j|�q�W|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': %sNrz.nfsrzlinking %s -> %sr)Zdistutils.file_utilr-r
rr
r�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#r5csH	)
r5cCs�xwtj|�D]f}tjj||�}tjj|�r`tjj|�r`t||�q|jtj|f�qW|jtj	|f�dS)zHelper for remove_tree().N)
r
r.rrr
r1�_build_cmdtupler�remove�rmdir)r�	cmdtuples�fZreal_fr"r"r#r;�s%r;cCs�|dkrtjd|�n|r)dSg}t||�x�|D]�}yB|d|d�tjj|d�}|tkr�t|=nWqCtk
r�}ztjd||�WYdd}~XqCXqCWdS)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;r
rrrr�warn)Z	directoryrrr>�cmdrr!r"r"r#�remove_tree�s

rBcCsLtjj|�\}}|dd�tjkrH||dd�}n|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)rZdriver"r"r#�ensure_relative�srE)�__doc__r
rZdistutils.errorsrrZ	distutilsrrr$r,r5r;rBrEr"r"r"r#�<module>s?D



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-34.pyc
0.396 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.396 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
archive_util.cpython-34.pyc
6.58 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
archive_util.cpython-34.pyo
6.58 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bcppcompiler.cpython-34.pyc
7.121 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bcppcompiler.cpython-34.pyo
7.121 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ccompiler.cpython-34.pyc
34.06 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ccompiler.cpython-34.pyo
33.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cmd.cpython-34.pyc
15.31 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cmd.cpython-34.pyo
15.31 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyc
3.731 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyo
3.731 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
core.cpython-34.pyc
6.964 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
core.cpython-34.pyo
6.964 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cygwinccompiler.cpython-34.pyc
9.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cygwinccompiler.cpython-34.pyo
9.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
debug.cpython-34.pyc
0.206 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
debug.cpython-34.pyo
0.206 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dep_util.cpython-34.pyc
2.798 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dep_util.cpython-34.pyo
2.798 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dir_util.cpython-34.pyc
6.088 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dir_util.cpython-34.pyo
6.088 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dist.cpython-34.pyc
35.987 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dist.cpython-34.pyo
35.987 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
errors.cpython-34.pyc
5.583 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
errors.cpython-34.pyo
5.583 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
extension.cpython-34.pyc
7.047 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
extension.cpython-34.pyo
7.047 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fancy_getopt.cpython-34.pyc
11.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fancy_getopt.cpython-34.pyo
11.131 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
file_util.cpython-34.pyc
6.201 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
file_util.cpython-34.pyo
6.201 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
filelist.cpython-34.pyc
9.933 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
filelist.cpython-34.pyo
9.933 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
log.cpython-34.pyc
2.435 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
log.cpython-34.pyo
2.435 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvc9compiler.cpython-34.pyc
18.796 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvc9compiler.cpython-34.pyo
18.73 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvccompiler.cpython-34.pyc
15.609 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvccompiler.cpython-34.pyo
15.609 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
spawn.cpython-34.pyc
5.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
spawn.cpython-34.pyo
5.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sysconfig.cpython-34.pyc
13.21 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sysconfig.cpython-34.pyo
13.21 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
text_file.cpython-34.pyc
8.726 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
text_file.cpython-34.pyo
8.726 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
unixccompiler.cpython-34.pyc
7.233 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
unixccompiler.cpython-34.pyo
7.233 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
util.cpython-34.pyc
16.223 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
util.cpython-34.pyo
16.223 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
version.cpython-34.pyc
7.786 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
version.cpython-34.pyo
7.736 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
versionpredicate.cpython-34.pyc
5.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
versionpredicate.cpython-34.pyo
5.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF