OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
loguru
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/09/2025 02:18:04 AM
rwxr-xr-x
📄
__init__.py
626 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
__init__.pyi
14.1 KB
05/14/2024 03:18:46 PM
rw-r--r--
📁
__pycache__
-
05/14/2024 03:18:46 PM
rwxr-xr-x
📄
_asyncio_loop.py
597 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_better_exceptions.py
19.53 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_colorama.py
1.63 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_colorizer.py
14.26 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_contextvars.py
321 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_ctime_functions.py
1.5 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_datetime.py
3.67 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_defaults.py
2.86 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_error_interceptor.py
1.08 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_file_sink.py
14.19 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_filters.py
618 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_get_frame.py
458 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_handler.py
12.34 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_locks_machinery.py
1.28 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_logger.py
93.72 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_recattrs.py
2.79 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_simple_sinks.py
3.65 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_string_parsers.py
4.6 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
py.typed
0 bytes
05/14/2024 03:18:46 PM
rw-r--r--
Editing: _ctime_functions.py
Close
import os def load_ctime_functions(): if os.name == "nt": import win32_setctime def get_ctime_windows(filepath): return os.stat(filepath).st_ctime def set_ctime_windows(filepath, timestamp): if not win32_setctime.SUPPORTED: return try: win32_setctime.setctime(filepath, timestamp) except (OSError, ValueError): pass return get_ctime_windows, set_ctime_windows elif hasattr(os.stat_result, "st_birthtime"): def get_ctime_macos(filepath): return os.stat(filepath).st_birthtime def set_ctime_macos(filepath, timestamp): pass return get_ctime_macos, set_ctime_macos elif hasattr(os, "getxattr") and hasattr(os, "setxattr"): def get_ctime_linux(filepath): try: return float(os.getxattr(filepath, b"user.loguru_crtime")) except OSError: return os.stat(filepath).st_mtime def set_ctime_linux(filepath, timestamp): try: os.setxattr(filepath, b"user.loguru_crtime", str(timestamp).encode("ascii")) except OSError: pass return get_ctime_linux, set_ctime_linux def get_ctime_fallback(filepath): return os.stat(filepath).st_mtime def set_ctime_fallback(filepath, timestamp): pass return get_ctime_fallback, set_ctime_fallback get_ctime, set_ctime = load_ctime_functions()