$64 GRAYBYTE WORDPRESS FILE MANAGER $36

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/python37/lib64/python3.7/distutils/__pycache__/

HOME
Current File : /opt/alt/python37/lib64/python3.7/distutils/__pycache__//archive_util.cpython-37.pyc
B

� fF!�@sDdZddlZddlmZddlZyddlZWnek
rDdZYnXddlmZddl	m
Z
ddlmZddl
mZyddlmZWnek
r�dZYnXydd	lmZWnek
r�dZYnXd
d�Zdd
�Zd#dd�Zd$dd�Zedgdfedgdfedgdfedgdfedgdfegdfd�Zdd �Zd%d!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)�getgrnamcCsNtdks|dkrdSyt|�}Wntk
r8d}YnX|dk	rJ|dSdS)z"Returns a gid, given a group name.N�)r�KeyError)�name�result�r
�;/opt/alt/python37/lib64/python3.7/distutils/archive_util.py�_get_gids
rcCsNtdks|dkrdSyt|�}Wntk
r8d}YnX|dk	rJ|dSdS)z"Returns an uid, given a user name.Nr	)rr
)rrr
r
r�_get_uid+s
r�gzipcs.dddddd�}dddd	d
�}|dk	r:||��kr:td��|d
}	|dkrZ|	|�|d�7}	ttj�|	�|d�ddl}
t�	d�t
���t�������fdd�}|s�|
�|	d||�}z|j
||d�Wd|��X|dk�r*tdt�|	||}
tjdk�r||	|
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.
    Zgz�bz2�xz�)r�bzip2rN�compressz.gzz.bz2z.xzz.Z)rrrrNzKbad value for 'compress': must be None, 'gzip', 'bzip2', 'xz' or 'compress'z.tarr)�dry_runrzCreating tar archivecs,�dk	r�|_�|_�dk	r(�|_�|_|S)N)�gidZgname�uid�uname)Ztarinfo)r�group�ownerrr
r�_set_uid_gidasz"make_tarball.<locals>._set_uid_gidzw|%s)�filterz'compress' will be deprecated.Zwin32z-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<
	



r2c	Cs�|d}ttj�|�|d�tdkrp|r.d}nd}ytd|||g|d�Wn tk
rjtd|��YnX�n:t�d||�|�s�ytj	|d	tj
d
�}Wn&tk
r�tj	|d	tjd
�}YnX|tj
kr�tj�tj�|d��}|�||�t�d|�x�t�|�D]�\}}	}
x>|	D]6}tj�tj�||d��}|�||�t�d|��qWxJ|
D]B}tj�tj�||��}tj�|��rV|�||�t�d|��qVW�qW|��|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.zip)rNz-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�w)Zcompressionrzadding '%s')rr"r#r$�zipfilerrrr&ZZipFileZZIP_DEFLATED�RuntimeErrorZ
ZIP_STORED�curdir�normpath�join�write�walk�isfiler))r-r.r/rZzip_filenameZ
zipoptionsr3r#�dirpathZdirnames�	filenamesrr
r
r�make_zipfilesJ	


r?)rrzgzip'ed tar-file)rrzbzip2'ed tar-file)rrzxz'ed tar-file)rrzcompressed tar file)rNzuncompressed tar filezZIP file)ZgztarZbztarZxztarZztarr0r3cCsx|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
rBc
Cs�t��}|dk	r6t�d|�tj�|�}|s6t�|�|dkrDtj}d|i}	yt|}
Wn t	k
rxt
d|��YnX|
d}x|
dD]\}}
|
|	|<q�W|dkr�||	d<||	d	<z|||f|	�}Wd|dk	r�t�d
|�t�|�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�r3rrzchanging back to '%s')r"�getcwdr�debugr#�abspath�chdirr7r@r
r )r-rAZroot_dirr.r/rrrZsave_cwd�kwargsZformat_info�func�arg�val�filenamer
r
r�make_archive�s2
rM)rrrNN)rr)NNrrNN)�__doc__r"�warningsrr+r5�ImportErrorZdistutils.errorsrZdistutils.spawnrZdistutils.dir_utilrZ	distutilsr�pwdrZgrprrrr2r?r@rBrMr
r
r
r�<module>sB



G
=








Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.34 AM
root / linksafe
0755
__init__.cpython-37.opt-1.pyc
0.386 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
__init__.cpython-37.opt-2.pyc
0.208 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
__init__.cpython-37.pyc
0.386 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_msvccompiler.cpython-37.opt-1.pyc
12.279 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_msvccompiler.cpython-37.opt-2.pyc
11.159 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
_msvccompiler.cpython-37.pyc
12.341 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
archive_util.cpython-37.opt-1.pyc
6.376 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
archive_util.cpython-37.opt-2.pyc
4.383 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
archive_util.cpython-37.pyc
6.376 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bcppcompiler.cpython-37.opt-1.pyc
6.346 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bcppcompiler.cpython-37.opt-2.pyc
6.064 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
bcppcompiler.cpython-37.pyc
6.346 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
ccompiler.cpython-37.opt-1.pyc
32.328 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
ccompiler.cpython-37.opt-2.pyc
16.361 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
ccompiler.cpython-37.pyc
32.452 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
cmd.cpython-37.opt-1.pyc
13.579 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
cmd.cpython-37.opt-2.pyc
7.855 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
cmd.cpython-37.pyc
13.579 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
config.cpython-37.opt-1.pyc
3.4 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
config.cpython-37.opt-2.pyc
3.019 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
config.cpython-37.pyc
3.4 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
core.cpython-37.opt-1.pyc
6.452 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
core.cpython-37.opt-2.pyc
3.145 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
core.cpython-37.pyc
6.452 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
cygwinccompiler.cpython-37.opt-1.pyc
8.325 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
cygwinccompiler.cpython-37.opt-2.pyc
6.733 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
cygwinccompiler.cpython-37.pyc
8.325 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
debug.cpython-37.opt-1.pyc
0.2 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
debug.cpython-37.opt-2.pyc
0.2 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
debug.cpython-37.pyc
0.2 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dep_util.cpython-37.opt-1.pyc
2.657 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dep_util.cpython-37.opt-2.pyc
1.247 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
dep_util.cpython-37.pyc
2.657 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dir_util.cpython-37.opt-1.pyc
5.679 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dir_util.cpython-37.opt-2.pyc
3.356 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
dir_util.cpython-37.pyc
5.679 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dist.cpython-37.opt-1.pyc
33.629 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dist.cpython-37.opt-2.pyc
24.552 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
dist.cpython-37.pyc
33.629 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
errors.cpython-37.opt-1.pyc
5.362 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
errors.cpython-37.opt-2.pyc
2.786 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
errors.cpython-37.pyc
5.362 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
extension.cpython-37.opt-1.pyc
6.74 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
extension.cpython-37.opt-2.pyc
3.332 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
extension.cpython-37.pyc
6.74 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
fancy_getopt.cpython-37.opt-1.pyc
10.221 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
fancy_getopt.cpython-37.opt-2.pyc
7.476 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
fancy_getopt.cpython-37.pyc
10.365 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
file_util.cpython-37.opt-1.pyc
5.762 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
file_util.cpython-37.opt-2.pyc
3.675 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
file_util.cpython-37.pyc
5.762 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
filelist.cpython-37.opt-1.pyc
9.517 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
filelist.cpython-37.opt-2.pyc
6.713 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
filelist.cpython-37.pyc
9.604 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
log.cpython-37.opt-1.pyc
2.262 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
log.cpython-37.opt-2.pyc
2.202 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
log.cpython-37.pyc
2.262 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
msvc9compiler.cpython-37.opt-1.pyc
16.915 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
msvc9compiler.cpython-37.opt-2.pyc
15.336 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
msvc9compiler.cpython-37.pyc
16.973 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
msvccompiler.cpython-37.opt-1.pyc
14.227 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
msvccompiler.cpython-37.opt-2.pyc
12.694 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
msvccompiler.cpython-37.pyc
14.227 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
spawn.cpython-37.opt-1.pyc
4.999 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
spawn.cpython-37.opt-2.pyc
3.726 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
spawn.cpython-37.pyc
4.999 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
sysconfig.cpython-37.opt-1.pyc
11.777 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
sysconfig.cpython-37.opt-2.pyc
8.369 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
sysconfig.cpython-37.pyc
11.777 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
text_file.cpython-37.opt-1.pyc
8.244 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
text_file.cpython-37.opt-2.pyc
3.262 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
text_file.cpython-37.pyc
8.244 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
unixccompiler.cpython-37.opt-1.pyc
6.71 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
unixccompiler.cpython-37.opt-2.pyc
6.096 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
unixccompiler.cpython-37.pyc
6.71 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
util.cpython-37.opt-1.pyc
14.744 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
util.cpython-37.opt-2.pyc
8.998 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
util.cpython-37.pyc
14.744 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
version.cpython-37.opt-1.pyc
7.137 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
version.cpython-37.opt-2.pyc
3.929 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
version.cpython-37.pyc
7.181 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
versionpredicate.cpython-37.opt-1.pyc
4.98 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
versionpredicate.cpython-37.opt-2.pyc
2.559 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
versionpredicate.cpython-37.pyc
4.98 KB
17 Apr 2024 5.36 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF