Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.217.108.153
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.8 /
site-packages /
pip /
_vendor /
pep517 /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-03-05 23:45
__init__.py
84
B
-rw-r--r--
2023-10-17 18:30
_in_process.py
7.61
KB
-rw-r--r--
2023-10-17 18:30
build.py
3.24
KB
-rw-r--r--
2023-10-17 18:30
check.py
5.81
KB
-rw-r--r--
2023-10-17 18:30
colorlog.py
4
KB
-rw-r--r--
2023-10-17 18:30
compat.py
780
B
-rw-r--r--
2023-10-17 18:30
dirtools.py
1.1
KB
-rw-r--r--
2023-10-17 18:30
envbuild.py
5.88
KB
-rw-r--r--
2023-10-17 18:30
meta.py
2.41
KB
-rw-r--r--
2023-10-17 18:30
wrappers.py
10.35
KB
-rw-r--r--
2023-10-17 18:30
Save
Rename
import os import io import contextlib import tempfile import shutil import errno import zipfile @contextlib.contextmanager def tempdir(): """Create a temporary directory in a context manager.""" td = tempfile.mkdtemp() try: yield td finally: shutil.rmtree(td) def mkdir_p(*args, **kwargs): """Like `mkdir`, but does not raise an exception if the directory already exists. """ try: return os.mkdir(*args, **kwargs) except OSError as exc: if exc.errno != errno.EEXIST: raise def dir_to_zipfile(root): """Construct an in-memory zip file for a directory.""" buffer = io.BytesIO() zip_file = zipfile.ZipFile(buffer, 'w') for root, dirs, files in os.walk(root): for path in dirs: fs_path = os.path.join(root, path) rel_path = os.path.relpath(fs_path, root) zip_file.writestr(rel_path + '/', '') for path in files: fs_path = os.path.join(root, path) rel_path = os.path.relpath(fs_path, root) zip_file.write(fs_path, rel_path) return zip_file