OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
hps
/
faces
/
faces
/
lib
/
python3.10
/
site-packages
/
pip
/
_vendor
/
pep517
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/26/2024 01:28:40 PM
rwxr-xr-x
📄
__init__.py
130 bytes
10/26/2024 01:28:34 PM
rw-r--r--
📁
__pycache__
-
10/26/2024 01:29:41 PM
rwxr-xr-x
📄
_compat.py
138 bytes
10/26/2024 01:28:34 PM
rw-r--r--
📄
build.py
3.36 KB
10/26/2024 01:28:34 PM
rw-r--r--
📄
check.py
5.94 KB
10/26/2024 01:28:34 PM
rw-r--r--
📄
colorlog.py
3.9 KB
10/26/2024 01:28:34 PM
rw-r--r--
📄
dirtools.py
607 bytes
10/26/2024 01:28:34 PM
rw-r--r--
📄
envbuild.py
5.94 KB
10/26/2024 01:28:34 PM
rw-r--r--
📁
in_process
-
10/26/2024 01:30:12 PM
rwxr-xr-x
📄
meta.py
2.46 KB
10/26/2024 01:28:34 PM
rw-r--r--
📄
wrappers.py
12.42 KB
10/26/2024 01:28:34 PM
rw-r--r--
Editing: dirtools.py
Close
import io import os import zipfile 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