SILENT KILLERPanel

Current Path: > > opt > > hc_python > lib > python3.12 > > site-packages > > importlib_resources > tests


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//hc_python/lib/python3.12//site-packages//importlib_resources/tests

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
compat Directory - -
__init__.py File 0 bytes April 04 2025 08:02:25.
_path.py File 2250 bytes April 04 2025 08:02:25.
test_compatibilty_files.py File 3313 bytes April 04 2025 08:02:25.
test_contents.py File 838 bytes April 04 2025 08:02:25.
test_custom.py File 1222 bytes April 04 2025 08:02:25.
test_files.py File 5741 bytes April 04 2025 08:02:25.
test_functional.py File 9070 bytes April 04 2025 08:02:25.
test_open.py File 2682 bytes April 04 2025 08:02:25.
test_path.py File 1986 bytes April 04 2025 08:02:25.
test_read.py File 3046 bytes April 04 2025 08:02:25.
test_reader.py File 4655 bytes April 04 2025 08:02:25.
test_resource.py File 7687 bytes April 04 2025 08:02:25.
test_util.py File 1105 bytes April 04 2025 08:02:25.
util.py File 9804 bytes April 04 2025 08:02:25.
zip.py File 577 bytes April 04 2025 08:02:25.

Reading File: //opt//hc_python/lib/python3.12//site-packages//importlib_resources/tests/zip.py

"""
Generate zip test data files.
"""

import zipfile

import zipp


def make_zip_file(tree, dst):
    """
    Zip the files in tree into a new zipfile at dst.
    """
    with zipfile.ZipFile(dst, 'w') as zf:
        for name, contents in walk(tree):
            zf.writestr(name, contents)
        zipp.CompleteDirs.inject(zf)
    return dst


def walk(tree, prefix=''):
    for name, contents in tree.items():
        if isinstance(contents, dict):
            yield from walk(contents, prefix=f'{prefix}{name}/')
        else:
            yield f'{prefix}{name}', contents

SILENT KILLER Tool