$77 GRAYBYTE WORDPRESS FILE MANAGER $31

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

HOME
Current File : /opt/alt/python310/lib64/python3.10/distutils/__pycache__//archive_util.cpython-310.opt-1.pyc
o

���h|!�@sFdZddlZddlmZddlZzddlZWney!dZYnwddlmZddl	m
Z
ddlmZddl
mZzddlmZWneyMdZYnwzdd	lmZWneyadZYnwd
d�Zdd
�Z		d#dd�Zd$dd�Zedgdfedgdfedgdfedgdfedgdfegdfd�Zdd �Z		d%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)�getgrnamcC�Ltdus|dur
dSzt|�}Wntyd}Ynw|dur$|dSdS)z"Returns a gid, given a group name.N�)r�KeyError��name�result�r�=/opt/alt/python310/lib64/python3.10/distutils/archive_util.py�_get_gid��rcCr	)z"Returns an uid, given a user name.Nr
)rrrrrr�_get_uid+rr�gzipcs2dddddd�}dddd	d
�}|dur||��vrtd��|d
}	|dkr-|	|�|d�7}	ttj�|	�|d�ddl}
t�	d�t
���t�������fdd�}|sp|
�|	d||�}z
|j
||d�W|��n|��w|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.
    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,�dur
�|_�|_�dur�|_�|_|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�add�closer�PendingDeprecationWarning�sys�platformr)�	base_name�base_dirr�verboserr!r Ztar_compressionZcompress_extZarchive_namer*r"�tarZcompressed_name�cmdrrr�make_tarball7sB���
	


r7c
Cs�|d}ttj�|�|d�tdur4|rd}nd}z
td|||g|d�W|Sty3td|��wt�d||�|s�ztj	|d	tj
d
�}WntyZtj	|d	tjd
�}Ynw|�o|tj
krztj�tj�|d��}|�||�t�d|�t�|�D]D\}}	}
|	D]}tj�tj�||d��}|�||�t�d|�q�|
D]}tj�tj�||��}tj�|�r�|�||�t�d|�q�qWd�|S1s�wY|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)r2r3r4rZzip_filenameZ
zipoptionsr8r(�dirpathZdirnames�	filenamesr
rrr�make_zipfilesf	�%����
�
��
���
��rD)rrzgzip'ed tar-file)rrzbzip2'ed tar-file)rrzxz'ed tar-file)rrzcompressed tar file)rNzuncompressed tar filezZIP file)ZgztarZbztarZxztarZztarr5r8cCs|D]
}|tvr|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
�rGc
Cst��}|durt�d|�tj�|�}|st�|�|dur"tj}d|i}	zt|}
Wn
t	y9t
d|��w|
d}|
dD]\}}
|
|	|<qB|dkrW||	d<||	d	<z|||fi|	��}W|durqt�d
|�t�|�|S|dur�t�d
|�t�|�ww)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�r8r!r zchanging back to '%s')r'�getcwdr�debugr(�abspath�chdirr<rErr%)r2rFZroot_dirr3r4rr!r Zsave_cwd�kwargsZformat_info�func�arg�val�filenamerrr�make_archive�s<
�

��rR)rrrNN)rr)NNrrNN)�__doc__r'�warningsrr0r:�ImportErrorZdistutils.errorsrZdistutils.spawnrZdistutils.dir_utilrZ	distutilsr�pwdrZgrprrrr7rDrErGrRrrrr�<module>sP���
�
H
=



�	
�


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
0.622 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
0.448 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
0.622 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_msvccompiler.cpython-310.opt-1.pyc
12.501 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_msvccompiler.cpython-310.opt-2.pyc
11.395 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_msvccompiler.cpython-310.pyc
12.543 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
archive_util.cpython-310.opt-1.pyc
6.371 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
archive_util.cpython-310.opt-2.pyc
4.4 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
archive_util.cpython-310.pyc
6.371 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
bcppcompiler.cpython-310.opt-1.pyc
6.358 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
bcppcompiler.cpython-310.opt-2.pyc
6.085 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
bcppcompiler.cpython-310.pyc
6.358 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
ccompiler.cpython-310.opt-1.pyc
32.196 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
ccompiler.cpython-310.opt-2.pyc
16.385 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
ccompiler.cpython-310.pyc
32.285 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cmd.cpython-310.opt-1.pyc
13.585 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cmd.cpython-310.opt-2.pyc
7.932 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cmd.cpython-310.pyc
13.585 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
config.cpython-310.opt-1.pyc
3.467 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
config.cpython-310.opt-2.pyc
3.116 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
config.cpython-310.pyc
3.467 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
core.cpython-310.opt-1.pyc
6.464 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
core.cpython-310.opt-2.pyc
3.168 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
core.cpython-310.pyc
6.464 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cygwinccompiler.cpython-310.opt-1.pyc
8.273 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cygwinccompiler.cpython-310.opt-2.pyc
6.725 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cygwinccompiler.cpython-310.pyc
8.273 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
debug.cpython-310.opt-1.pyc
0.208 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
debug.cpython-310.opt-2.pyc
0.208 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
debug.cpython-310.pyc
0.208 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dep_util.cpython-310.opt-1.pyc
2.67 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dep_util.cpython-310.opt-2.pyc
1.276 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dep_util.cpython-310.pyc
2.67 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dir_util.cpython-310.opt-1.pyc
5.708 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dir_util.cpython-310.opt-2.pyc
3.413 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dir_util.cpython-310.pyc
5.708 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dist.cpython-310.opt-1.pyc
33.17 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dist.cpython-310.opt-2.pyc
24.199 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dist.cpython-310.pyc
33.17 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.opt-1.pyc
4.839 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.opt-2.pyc
2.46 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.pyc
4.839 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
extension.cpython-310.opt-1.pyc
6.826 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
extension.cpython-310.opt-2.pyc
3.43 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
extension.cpython-310.pyc
6.826 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
fancy_getopt.cpython-310.opt-1.pyc
10.227 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
fancy_getopt.cpython-310.opt-2.pyc
7.54 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
fancy_getopt.cpython-310.pyc
10.345 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
file_util.cpython-310.opt-1.pyc
5.8 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
file_util.cpython-310.opt-2.pyc
3.732 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
file_util.cpython-310.pyc
5.8 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
filelist.cpython-310.opt-1.pyc
9.54 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
filelist.cpython-310.opt-2.pyc
6.771 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
filelist.cpython-310.pyc
9.612 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
log.cpython-310.opt-1.pyc
2.217 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
log.cpython-310.opt-2.pyc
2.161 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
log.cpython-310.pyc
2.217 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvc9compiler.cpython-310.opt-1.pyc
17.072 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvc9compiler.cpython-310.opt-2.pyc
15.531 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvc9compiler.cpython-310.pyc
17.114 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvccompiler.cpython-310.opt-1.pyc
14.398 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvccompiler.cpython-310.opt-2.pyc
12.9 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvccompiler.cpython-310.pyc
14.398 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
spawn.cpython-310.opt-1.pyc
3.35 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
spawn.cpython-310.opt-2.pyc
2.255 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
spawn.cpython-310.pyc
3.35 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
sysconfig.cpython-310.opt-1.pyc
6.848 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
sysconfig.cpython-310.opt-2.pyc
5.065 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
sysconfig.cpython-310.pyc
6.848 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
text_file.cpython-310.opt-1.pyc
8.234 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
text_file.cpython-310.opt-2.pyc
3.292 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
text_file.cpython-310.pyc
8.234 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
unixccompiler.cpython-310.opt-1.pyc
6.946 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
unixccompiler.cpython-310.opt-2.pyc
6.34 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
unixccompiler.cpython-310.pyc
6.946 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-1.pyc
15.281 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-2.pyc
9.591 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.pyc
15.285 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
version.cpython-310.opt-1.pyc
7.134 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
version.cpython-310.opt-2.pyc
3.941 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
version.cpython-310.pyc
7.15 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
versionpredicate.cpython-310.opt-1.pyc
5.029 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
versionpredicate.cpython-310.opt-2.pyc
2.631 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
versionpredicate.cpython-310.pyc
5.029 KB
9 Jan 2026 2.06 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF