SILENT KILLERPanel

Current Path: > > opt > alt > python37 > lib > python3.7 > site-packages > pip > > _vendor > pep517


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python37/lib/python3.7/site-packages/pip//_vendor/pep517

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 84 bytes November 13 2023 21:31:06.
_in_process.py File 8438 bytes November 13 2023 21:31:06.
build.py File 3335 bytes November 13 2023 21:31:06.
check.py File 5961 bytes November 13 2023 21:31:06.
colorlog.py File 4098 bytes November 13 2023 21:31:06.
compat.py File 780 bytes November 13 2023 21:31:06.
dirtools.py File 1129 bytes November 13 2023 21:31:06.
envbuild.py File 6041 bytes November 13 2023 21:31:06.
meta.py File 2463 bytes November 13 2023 21:31:06.
wrappers.py File 10783 bytes November 13 2023 21:31:06.

Reading File: //opt/alt/python37/lib/python3.7/site-packages/pip//_vendor/pep517/dirtools.py

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

SILENT KILLER Tool