$96 GRAYBYTE WORDPRESS FILE MANAGER $49

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

HOME
Current File : /opt/alt/python38/lib64/python3.8/distutils/__pycache__//archive_util.cpython-38.pyc
U

i�f|!�@sDdZddlZddlmZddlZzddlZWnek
rDdZYnXddlmZddl	m
Z
ddlmZddl
mZzddlmZWnek
r�dZYnXzdd	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|dkrdSzt|�}Wntk
r8d}YnX|dk	rJ|dSdS)z"Returns a gid, given a group name.N�)r�KeyError��name�result�r�;/opt/alt/python38/lib64/python3.8/distutils/archive_util.py�_get_gids
rcCsNtdks|dkrdSzt|�}Wntk
r8d}YnX|dk	rJ|dSdS)z"Returns an uid, given a user name.Nr	)rr
rrrr�_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�W5|�
�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�ownerrrr�_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�close�addr�PendingDeprecationWarning�sys�platformr)�	base_name�base_dirr�verboserrrZtar_compressionZcompress_extZarchive_namer(r �tarZcompressed_name�cmdrrr�make_tarball7sB���
	



r5c
Cs�|d}ttj�|�|d�tdkrp|r.d}nd}ztd|||g|d�Wn tk
rjtd|��YnX�n8t�d||�|�s�ztj	|d	tj
d
�}Wn&tk
r�tj	|d	tjd
�}YnX|��|tj
k�rtj�tj�|d��}|�||�t�d|�t�|�D]�\}}	}
|	D]6}tj�tj�||d��}|�||�t�d|��q|
D]B}tj�tj�||��}tj�|��rV|�||�t�d|��qV�qW5QRX|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�w)Zcompressionrzadding '%s')rr%r&r'�zipfilerrrr)ZZipFileZZIP_DEFLATED�RuntimeErrorZ
ZIP_STORED�curdir�normpath�join�write�walk�isfile)r0r1r2rZzip_filenameZ
zipoptionsr6r&�dirpathZdirnames�	filenamesrrrr�make_zipfilesV	�
���
�rB)rrzgzip'ed tar-file)rrzbzip2'ed tar-file)rrzxz'ed tar-file)rrzcompressed tar file)rNzuncompressed tar filezZIP file)ZgztarZbztarZxztarZztarr3r6cCs|D]}|tkr|SqdS)zqReturns the first format from the 'format' list that is unknown.

    If all formats are known, returns None
    N)�ARCHIVE_FORMATS)Zformats�formatrrr�check_archive_formats�s
rEc
Cs�t��}|dk	r6t�d|�tj�|�}|s6t�|�|dkrDtj}d|i}	zt|}
Wn t	k
rxt
d|��YnX|
d}|
dD]\}}
|
|	|<q�|dkr�||	d<||	d	<z|||f|	�}W5|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�r6rrzchanging back to '%s')r%�getcwdr�debugr&�abspath�chdirr:rCr
r#)r0rDZroot_dirr1r2rrrZsave_cwd�kwargsZformat_info�func�arg�val�filenamerrr�make_archive�s2

rP)rrrNN)rr)NNrrNN)�__doc__r%�warningsrr.r8�ImportErrorZdistutils.errorsrZdistutils.spawnrZdistutils.dir_utilrZ	distutilsr�pwdrZgrprrrr5rBrCrErPrrrr�<module>sN


�
H
=




�	
�


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 Oct 2024 8.34 AM
root / linksafe
0755
__init__.cpython-38.opt-1.pyc
0.39 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__init__.cpython-38.opt-2.pyc
0.212 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__init__.cpython-38.pyc
0.39 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_msvccompiler.cpython-38.opt-1.pyc
12.619 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_msvccompiler.cpython-38.opt-2.pyc
11.496 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_msvccompiler.cpython-38.pyc
12.677 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
archive_util.cpython-38.opt-1.pyc
6.4 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
archive_util.cpython-38.opt-2.pyc
4.406 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
archive_util.cpython-38.pyc
6.4 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
bcppcompiler.cpython-38.opt-1.pyc
6.385 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
bcppcompiler.cpython-38.opt-2.pyc
6.104 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
bcppcompiler.cpython-38.pyc
6.385 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
ccompiler.cpython-38.opt-1.pyc
32.407 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
ccompiler.cpython-38.opt-2.pyc
16.483 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
ccompiler.cpython-38.pyc
32.531 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
cmd.cpython-38.opt-1.pyc
13.636 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
cmd.cpython-38.opt-2.pyc
7.907 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
cmd.cpython-38.pyc
13.636 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
config.cpython-38.opt-1.pyc
3.441 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
config.cpython-38.opt-2.pyc
3.06 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
config.cpython-38.pyc
3.441 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
core.cpython-38.opt-1.pyc
6.474 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
core.cpython-38.opt-2.pyc
3.166 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
core.cpython-38.pyc
6.474 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
cygwinccompiler.cpython-38.opt-1.pyc
8.425 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
cygwinccompiler.cpython-38.opt-2.pyc
6.833 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
cygwinccompiler.cpython-38.pyc
8.425 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
debug.cpython-38.opt-1.pyc
0.204 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
debug.cpython-38.opt-2.pyc
0.204 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
debug.cpython-38.pyc
0.204 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dep_util.cpython-38.opt-1.pyc
2.665 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dep_util.cpython-38.opt-2.pyc
1.255 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dep_util.cpython-38.pyc
2.665 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dir_util.cpython-38.opt-1.pyc
5.701 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dir_util.cpython-38.opt-2.pyc
3.379 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dir_util.cpython-38.pyc
5.701 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dist.cpython-38.opt-1.pyc
33.698 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dist.cpython-38.opt-2.pyc
24.625 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
dist.cpython-38.pyc
33.698 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
errors.cpython-38.opt-1.pyc
5.142 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
errors.cpython-38.opt-2.pyc
2.653 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
errors.cpython-38.pyc
5.142 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
extension.cpython-38.opt-1.pyc
6.775 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
extension.cpython-38.opt-2.pyc
3.367 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
extension.cpython-38.pyc
6.775 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
fancy_getopt.cpython-38.opt-1.pyc
10.28 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
fancy_getopt.cpython-38.opt-2.pyc
7.543 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
fancy_getopt.cpython-38.pyc
10.421 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
file_util.cpython-38.opt-1.pyc
5.809 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
file_util.cpython-38.opt-2.pyc
3.722 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
file_util.cpython-38.pyc
5.809 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
filelist.cpython-38.opt-1.pyc
9.563 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
filelist.cpython-38.opt-2.pyc
6.759 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
filelist.cpython-38.pyc
9.65 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
log.cpython-38.opt-1.pyc
2.275 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
log.cpython-38.opt-2.pyc
2.216 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
log.cpython-38.pyc
2.275 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
msvc9compiler.cpython-38.opt-1.pyc
17.057 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
msvc9compiler.cpython-38.opt-2.pyc
15.474 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
msvc9compiler.cpython-38.pyc
17.114 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
msvccompiler.cpython-38.opt-1.pyc
14.393 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
msvccompiler.cpython-38.opt-2.pyc
12.854 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
msvccompiler.cpython-38.pyc
14.393 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
spawn.cpython-38.opt-1.pyc
5.001 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
spawn.cpython-38.opt-2.pyc
3.728 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
spawn.cpython-38.pyc
5.001 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
sysconfig.cpython-38.opt-1.pyc
11.867 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
sysconfig.cpython-38.opt-2.pyc
8.464 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
sysconfig.cpython-38.pyc
11.867 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
text_file.cpython-38.opt-1.pyc
8.256 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
text_file.cpython-38.opt-2.pyc
3.277 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
text_file.cpython-38.pyc
8.256 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
unixccompiler.cpython-38.opt-1.pyc
6.835 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
unixccompiler.cpython-38.opt-2.pyc
6.221 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
unixccompiler.cpython-38.pyc
6.835 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
util.cpython-38.opt-1.pyc
15.196 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
util.cpython-38.opt-2.pyc
9.45 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
util.cpython-38.pyc
15.196 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
version.cpython-38.opt-1.pyc
7.11 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
version.cpython-38.opt-2.pyc
3.902 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
version.cpython-38.pyc
7.154 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
versionpredicate.cpython-38.opt-1.pyc
5.029 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
versionpredicate.cpython-38.opt-2.pyc
2.607 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
versionpredicate.cpython-38.pyc
5.029 KB
23 Sep 2024 11.26 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF