📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-27 22:42:27
📂
/ (Root)
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
inotify
📍 /opt/hc_python/lib/python3.12/site-packages/inotify
🔄 Refresh
✏️
Editing: test_support.py
Read Only
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 Changes
❌ Cancel