$49 GRAYBYTE WORDPRESS FILE MANAGER $18

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

/opt/alt/python35/lib64/python3.5/distutils/__pycache__/

HOME
Current File : /opt/alt/python35/lib64/python3.5/distutils/__pycache__//archive_util.cpython-35.opt-1.pyc


��Yf��&@s�dZddlZddlmZddlZyddlZWnek
rXdZYnXddlmZddl	m
Z
ddlmZddl
mZyddlmZWnek
r�dZYnXydd	lmZWnek
r�dZYnXd
d�Zdd
�Zddddddd�Zdddd�Zded&gdfded'gdfded(gdfded)gdfded*gdfd egd!fiZd"d#�Zddddddd$d%�ZdS)+zodistutils.archive_util

Utility functions for creating archive files (tarballs, zip files,
that sort of thing).�N)�warn)�DistutilsExecError)�spawn)�mkpath)�log)�getpwnam)�getgrnamcCs_tdks|dkrdSyt|�}Wntk
rFd}YnX|dk	r[|dSdS)z"Returns a gid, given a group name.N�)r�KeyError)�name�result�r
�;/opt/alt/python35/lib64/python3.5/distutils/archive_util.py�_get_gids
rcCs_tdks|dkrdSyt|�}Wntk
rFd}YnX|dk	r[|dSdS)z"Returns an uid, given a user name.Nr	)rr
)rrr
r
r�_get_uid+s
r�gzipcs�ddddddddddi}dd	dd
ddddi}|dk	rl||j�krltd
��|d}	|dkr�|	|j|d�7}	ttjj|	�d|�ddl}
tj	d�t
���t�������fdd�}|sE|
j|	d||�}z|j
|d|�Wd|j�X|dkr�tdt�|	||}
tjdkr�||	|
g}n|d|	g}t|d|�|
S|	S)a=Create a (possibly compressed) tar file from all the files under
    'base_dir'.

    'compress' must be "gzip" (the default), "bzip2", "xz", "compress", or
    None.  ("compress" will be deprecated in Python 3.2)

    'owner' and 'group' can be used to define an owner and a group for the
    archive that is being built. If not provided, the current owner and group
    will be used.

    The output tar file will be named 'base_dir' +  ".tar", possibly plus
    the appropriate compression extension (".gz", ".bz2", ".xz" or ".Z").

    Returns the output filename.
    rZgz�bzip2�bz2�xzN��compressz.gzz.bz2z.xzz.ZzKbad value for 'compress': must be None, 'gzip', 'bzip2', 'xz' or 'compress'z.tar�dry_runrzCreating tar archivecs@�dk	r�|_�|_�dk	r<�|_�|_|S)N)�gidZgname�uid�uname)Ztarinfo)r�group�ownerrr
r�_set_uid_gidas				z"make_tarball.<locals>._set_uid_gidzw|%s�filterz'compress' will be deprecated.�win32z-f)�keys�
ValueError�getr�os�path�dirname�tarfiler�inforr�open�add�closer�PendingDeprecationWarning�sys�platformr)�	base_name�base_dirr�verboserrrZtar_compressionZcompress_extZarchive_namer&r�tarZcompressed_name�cmdr
)rrrrr�make_tarball7s<	

	
r3cCs�|d}ttjj|�d|�tdkr�|rAd}nd}y td|||gd|�Wq�tk
r�td|��Yq�Xn�tjd||�|s�ytj	|d	d
tj
�}Wn-tk
r�tj	|d	d
tj�}YnXx�tj
|�D]t\}}}	xb|	D]Z}
tjjtjj||
��}tjj|�r|j||�tjd|�qWqW|j�|S)avCreate a zip file from all the files under 'base_dir'.

    The output zip file will be named 'base_name' + ".zip".  Uses either the
    "zipfile" Python module (if available) or the InfoZIP "zip" utility
    (if installed and found on the default search path).  If neither tool is
    available, raises DistutilsExecError.  Returns the name of the output zip
    file.
    z.ziprNz-rz-rq�zipzkunable to create zip file '%s': could neither import the 'zipfile' module nor find a standalone zip utilityz#creating '%s' and adding '%s' to it�wZcompressionzadding '%s')rr#r$r%�zipfilerrrr'ZZipFileZZIP_DEFLATED�RuntimeErrorZ
ZIP_STORED�walk�normpath�join�isfile�writer*)r.r/r0rZzip_filenameZ
zipoptionsr4�dirpathZdirnames�	filenamesrr$r
r
r�make_zipfiles:	
	
	


!
r?Zgztarrzgzip'ed tar-fileZbztarrzbzip2'ed tar-fileZxztarrzxz'ed tar-fileZztarzcompressed tar filer1zuncompressed tar filer4zZIP filecCs%x|D]}|tkr|SqWdS)zqReturns the first format from the 'format' list that is unknown.

    If all formats are known, returns None
    N)�ARCHIVE_FORMATS)Zformats�formatr
r
r�check_archive_formats�s
rBcCs7tj�}|dk	rMtjd|�tjj|�}|sMtj|�|dkrbtj}d|i}	yt|}
Wn"t	k
r�t
d|��YnX|
d}x"|
dD]\}}
|
|	|<q�W|dkr�||	d<||	d	<z||||	�}Wd|dk	r2tjd
|�tj|�X|S)a�Create an archive file (eg. zip or tar).

    'base_name' is the name of the file to create, minus any format-specific
    extension; 'format' is the archive format: one of "zip", "tar", "gztar",
    "bztar", "xztar", or "ztar".

    'root_dir' is a directory that will be the root directory of the
    archive; ie. we typically chdir into 'root_dir' before creating the
    archive.  'base_dir' is the directory where we start archiving from;
    ie. 'base_dir' will be the common prefix of all files and
    directories in the archive.  'root_dir' and 'base_dir' both default
    to the current directory.  Returns the name of the archive file.

    'owner' and 'group' are used when creating a tar archive. By default,
    uses the current owner and group.
    Nzchanging into '%s'rzunknown archive format '%s'r�r4rrzchanging back to '%s')r#�getcwdr�debugr$�abspath�chdir�curdirr@r
r!)r.rAZroot_dirr/r0rrrZsave_cwd�kwargsZformat_info�func�arg�val�filenamer
r
r�make_archive�s2
	



rN)rr)rr)rr)rr)rN)�__doc__r#�warningsrr,r6�ImportErrorZdistutils.errorsrZdistutils.spawnrZdistutils.dir_utilrZ	distutilsr�pwdrZgrprrrr3r?r@rBrNr
r
r
r�<module>sB


	G5
	


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
12 Aug 2024 8.41 AM
root / linksafe
0755
__init__.cpython-35.opt-1.pyc
0.396 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.opt-2.pyc
0.207 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.pyc
0.396 KB
31 May 2024 1.51 PM
root / linksafe
0644
_msvccompiler.cpython-35.opt-1.pyc
13.183 KB
31 May 2024 1.51 PM
root / linksafe
0644
_msvccompiler.cpython-35.opt-2.pyc
12.376 KB
31 May 2024 1.51 PM
root / linksafe
0644
_msvccompiler.cpython-35.pyc
13.248 KB
31 May 2024 1.51 PM
root / linksafe
0644
archive_util.cpython-35.opt-1.pyc
6.645 KB
31 May 2024 1.51 PM
root / linksafe
0644
archive_util.cpython-35.opt-2.pyc
4.64 KB
31 May 2024 1.51 PM
root / linksafe
0644
archive_util.cpython-35.pyc
6.645 KB
31 May 2024 1.51 PM
root / linksafe
0644
bcppcompiler.cpython-35.opt-1.pyc
7.075 KB
31 May 2024 1.51 PM
root / linksafe
0644
bcppcompiler.cpython-35.opt-2.pyc
6.78 KB
31 May 2024 1.51 PM
root / linksafe
0644
bcppcompiler.cpython-35.pyc
7.075 KB
31 May 2024 1.51 PM
root / linksafe
0644
ccompiler.cpython-35.opt-1.pyc
33.824 KB
31 May 2024 1.51 PM
root / linksafe
0644
ccompiler.cpython-35.opt-2.pyc
17.844 KB
31 May 2024 1.51 PM
root / linksafe
0644
ccompiler.cpython-35.pyc
33.985 KB
31 May 2024 1.51 PM
root / linksafe
0644
cmd.cpython-35.opt-1.pyc
15.269 KB
31 May 2024 1.51 PM
root / linksafe
0644
cmd.cpython-35.opt-2.pyc
9.396 KB
31 May 2024 1.51 PM
root / linksafe
0644
cmd.cpython-35.pyc
15.269 KB
31 May 2024 1.51 PM
root / linksafe
0644
config.cpython-35.opt-1.pyc
3.713 KB
31 May 2024 1.51 PM
root / linksafe
0644
config.cpython-35.opt-2.pyc
3.316 KB
31 May 2024 1.51 PM
root / linksafe
0644
config.cpython-35.pyc
3.713 KB
31 May 2024 1.51 PM
root / linksafe
0644
core.cpython-35.opt-1.pyc
6.88 KB
31 May 2024 1.51 PM
root / linksafe
0644
core.cpython-35.opt-2.pyc
3.561 KB
31 May 2024 1.51 PM
root / linksafe
0644
core.cpython-35.pyc
6.88 KB
31 May 2024 1.51 PM
root / linksafe
0644
cygwinccompiler.cpython-35.opt-1.pyc
8.997 KB
31 May 2024 1.51 PM
root / linksafe
0644
cygwinccompiler.cpython-35.opt-2.pyc
7.39 KB
31 May 2024 1.51 PM
root / linksafe
0644
cygwinccompiler.cpython-35.pyc
8.997 KB
31 May 2024 1.51 PM
root / linksafe
0644
debug.cpython-35.opt-1.pyc
0.206 KB
31 May 2024 1.51 PM
root / linksafe
0644
debug.cpython-35.opt-2.pyc
0.196 KB
31 May 2024 1.51 PM
root / linksafe
0644
debug.cpython-35.pyc
0.206 KB
31 May 2024 1.51 PM
root / linksafe
0644
dep_util.cpython-35.opt-1.pyc
2.786 KB
31 May 2024 1.51 PM
root / linksafe
0644
dep_util.cpython-35.opt-2.pyc
1.364 KB
31 May 2024 1.51 PM
root / linksafe
0644
dep_util.cpython-35.pyc
2.786 KB
31 May 2024 1.51 PM
root / linksafe
0644
dir_util.cpython-35.opt-1.pyc
6.05 KB
31 May 2024 1.51 PM
root / linksafe
0644
dir_util.cpython-35.opt-2.pyc
3.716 KB
31 May 2024 1.51 PM
root / linksafe
0644
dir_util.cpython-35.pyc
6.05 KB
31 May 2024 1.51 PM
root / linksafe
0644
dist.cpython-35.opt-1.pyc
35.598 KB
31 May 2024 1.51 PM
root / linksafe
0644
dist.cpython-35.opt-2.pyc
26.504 KB
31 May 2024 1.51 PM
root / linksafe
0644
dist.cpython-35.pyc
35.598 KB
31 May 2024 1.51 PM
root / linksafe
0644
errors.cpython-35.opt-1.pyc
5.583 KB
31 May 2024 1.51 PM
root / linksafe
0644
errors.cpython-35.opt-2.pyc
2.958 KB
31 May 2024 1.51 PM
root / linksafe
0644
errors.cpython-35.pyc
5.583 KB
31 May 2024 1.51 PM
root / linksafe
0644
extension.cpython-35.opt-1.pyc
7.23 KB
31 May 2024 1.51 PM
root / linksafe
0644
extension.cpython-35.opt-2.pyc
3.809 KB
31 May 2024 1.51 PM
root / linksafe
0644
extension.cpython-35.pyc
7.23 KB
31 May 2024 1.51 PM
root / linksafe
0644
fancy_getopt.cpython-35.opt-1.pyc
11.055 KB
31 May 2024 1.51 PM
root / linksafe
0644
fancy_getopt.cpython-35.opt-2.pyc
8.294 KB
31 May 2024 1.51 PM
root / linksafe
0644
fancy_getopt.cpython-35.pyc
11.222 KB
31 May 2024 1.51 PM
root / linksafe
0644
file_util.cpython-35.opt-1.pyc
6.148 KB
31 May 2024 1.51 PM
root / linksafe
0644
file_util.cpython-35.opt-2.pyc
4.05 KB
31 May 2024 1.51 PM
root / linksafe
0644
file_util.cpython-35.pyc
6.148 KB
31 May 2024 1.51 PM
root / linksafe
0644
filelist.cpython-35.opt-1.pyc
10.083 KB
31 May 2024 1.51 PM
root / linksafe
0644
filelist.cpython-35.opt-2.pyc
7.266 KB
31 May 2024 1.51 PM
root / linksafe
0644
filelist.cpython-35.pyc
10.083 KB
31 May 2024 1.51 PM
root / linksafe
0644
log.cpython-35.opt-1.pyc
2.42 KB
31 May 2024 1.51 PM
root / linksafe
0644
log.cpython-35.opt-2.pyc
2.349 KB
31 May 2024 1.51 PM
root / linksafe
0644
log.cpython-35.pyc
2.42 KB
31 May 2024 1.51 PM
root / linksafe
0644
msvc9compiler.cpython-35.opt-1.pyc
18.656 KB
31 May 2024 1.51 PM
root / linksafe
0644
msvc9compiler.cpython-35.opt-2.pyc
17.062 KB
31 May 2024 1.51 PM
root / linksafe
0644
msvc9compiler.cpython-35.pyc
18.722 KB
31 May 2024 1.51 PM
root / linksafe
0644
msvccompiler.cpython-35.opt-1.pyc
15.567 KB
31 May 2024 1.51 PM
root / linksafe
0644
msvccompiler.cpython-35.opt-2.pyc
14.012 KB
31 May 2024 1.51 PM
root / linksafe
0644
msvccompiler.cpython-35.pyc
15.567 KB
31 May 2024 1.51 PM
root / linksafe
0644
spawn.cpython-35.opt-1.pyc
5.241 KB
31 May 2024 1.51 PM
root / linksafe
0644
spawn.cpython-35.opt-2.pyc
3.956 KB
31 May 2024 1.51 PM
root / linksafe
0644
spawn.cpython-35.pyc
5.241 KB
31 May 2024 1.51 PM
root / linksafe
0644
sysconfig.cpython-35.opt-1.pyc
12.795 KB
31 May 2024 1.51 PM
root / linksafe
0644
sysconfig.cpython-35.opt-2.pyc
9.377 KB
31 May 2024 1.51 PM
root / linksafe
0644
sysconfig.cpython-35.pyc
12.795 KB
31 May 2024 1.51 PM
root / linksafe
0644
text_file.cpython-35.opt-1.pyc
8.684 KB
31 May 2024 1.51 PM
root / linksafe
0644
text_file.cpython-35.opt-2.pyc
3.688 KB
31 May 2024 1.51 PM
root / linksafe
0644
text_file.cpython-35.pyc
8.684 KB
31 May 2024 1.51 PM
root / linksafe
0644
unixccompiler.cpython-35.opt-1.pyc
7.427 KB
31 May 2024 1.51 PM
root / linksafe
0644
unixccompiler.cpython-35.opt-2.pyc
6.801 KB
31 May 2024 1.51 PM
root / linksafe
0644
unixccompiler.cpython-35.pyc
7.427 KB
31 May 2024 1.51 PM
root / linksafe
0644
util.cpython-35.opt-1.pyc
16.138 KB
31 May 2024 1.51 PM
root / linksafe
0644
util.cpython-35.opt-2.pyc
10.205 KB
31 May 2024 1.51 PM
root / linksafe
0644
util.cpython-35.pyc
16.138 KB
31 May 2024 1.51 PM
root / linksafe
0644
version.cpython-35.opt-1.pyc
7.541 KB
31 May 2024 1.51 PM
root / linksafe
0644
version.cpython-35.opt-2.pyc
4.315 KB
31 May 2024 1.51 PM
root / linksafe
0644
version.cpython-35.pyc
7.591 KB
31 May 2024 1.51 PM
root / linksafe
0644
versionpredicate.cpython-35.opt-1.pyc
5.243 KB
31 May 2024 1.51 PM
root / linksafe
0644
versionpredicate.cpython-35.opt-2.pyc
2.808 KB
31 May 2024 1.51 PM
root / linksafe
0644
versionpredicate.cpython-35.pyc
5.243 KB
31 May 2024 1.51 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF