$57 GRAYBYTE WORDPRESS FILE MANAGER $89

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

HOME
Current File : /opt/alt/python34/lib64/python3.4/distutils/__pycache__//archive_util.cpython-34.pyo
�
i f	� @s�dZddlZddlmZddlZyddlZWnek
rXdZYnXddlmZddl	m
Z
ddlmZddl
mZyddlmZWnek
r�dZYnXydd	lmZWnek
r�dZYnXd
d�Zdd
�Zddddddd�Zdddd�Zied#gdfd6ed$gdfd6ed%gdfd6ed&gdfd6egdfd6Zdd �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/python34/lib64/python3.4/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�idd6dd6dd6dd6}idd6d	d6d
d6}|dk	rj||j�krjtd��n|d}	|dkr�|	|j|d�7}	nttjj|	�d
|�ddl}
tj	d�t
���t�������fdd�}|sI|
j|	d||�}z|j
|d|�Wd|j�Xn|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), "compress", "bzip2", 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" or ".Z").

    Returns the output filename.
    Zgzr�bz2�bzip2�N�compressz.gzz.bz2z.ZzEbad value for 'compress': must be None, 'gzip', 'bzip2' or 'compress'z.tar�dry_runrzCreating tar archivecsF�dk	r!�|_�|_n�dk	rB�|_�|_n|S)N)�gidZgname�uid�uname)Ztarinfo)r�group�ownerrr
r�_set_uid_gid_s		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_tarball7s8"

	
r2cCs�|d}ttjj|�d|�tdkr�|rAd}nd}y td|||gd|�Wq�tk
r�td|��Yq�Xntjd||�|s�ytj	|d	d
tj
�}Wn-tk
r�tj	|d	d
tj�}YnXx�tj
|�D]w\}}}	xe|	D]]}
tjjtjj||
��}tjj|�r|j||�tjd|�qqWqW|j�n|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.r/rZzip_filenameZ
zipoptionsr3�dirpathZdirnames�	filenamesrr#r
r
r�make_zipfile}s:	
	
	


!
r>rzgzip'ed tar-fileZgztarrzbzip2'ed tar-fileZbztarzcompressed tar fileZztarzuncompressed tar filer0zZIP filer3cCs%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
rAcCsGtj�}|dk	rStjd|�tjj|�}|sStj|�qSn|dkrktj}ni|d6}	yt|}
Wn"t	k
r�t
d|��YnX|
d}x"|
dD]\}}
|
|	|<q�W|dkr�||	d<||	d	<nz||||	�}Wd|dk	rBtjd
|�tj|�nX|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", "ztar",
    or "gztar".

    '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�chdir�curdirr?r
r )r-r@Zroot_dirr.r/rrrZsave_cwd�kwargsZformat_info�func�arg�val�filenamer
r
r�make_archive�s2




rM)�compresszgzip)rNzbzip2)rNrN)rNN)�__doc__r"�warningsrr+r5�ImportErrorZdistutils.errorsrZdistutils.spawnrZdistutils.dir_utilrZ	distutilsr�pwdrZgrprrrr2r>r?rArMr
r
r
r�<module>sB


	E4
	


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