X7ROOT File Manager
Current Path:
/opt/hc_python/lib/python3.12/site-packages/inotify
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
inotify
/
??
..
??
__init__.py
(0 B)
??
__pycache__
??
adapters.py
(12.99 KB)
??
calls.py
(1.77 KB)
??
constants.py
(2.2 KB)
??
library.py
(177 B)
??
resources
??
test_support.py
(383 B)
Editing: test_support.py
import os import logging import shutil import tempfile import contextlib _LOGGER = logging.getLogger(__name__) @contextlib.contextmanager def temp_path(): path = tempfile.mkdtemp() original_wd = os.getcwd() os.chdir(path) try: yield path finally: os.chdir(original_wd) if os.path.exists(path) is True: shutil.rmtree(path)
Upload File
Create Folder