opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
inotify
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] __pycache__
N/A
[DIR] resources
N/A
__init__.py
23 bytes
Rename
Delete
adapters.py
12.88 KB
Rename
Delete
calls.py
1.50 KB
Rename
Delete
constants.py
2.20 KB
Rename
Delete
library.py
173 bytes
Rename
Delete
test_support.py
383 bytes
Rename
Delete
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)
Save