$62 GRAYBYTE WORDPRESS FILE MANAGER $48

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 91.108.106.185 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python311/lib/python3.11/site-packages/loguru/

HOME
Current File : /opt/alt/python311/lib/python3.11/site-packages/loguru//_ctime_functions.py
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()

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
5 Sep 2025 9.32 AM
root / 996
0755
__pycache__
--
8 May 2024 6.34 PM
root / root
0755
__init__.py
0.611 KB
8 May 2024 6.34 PM
root / root
0644
__init__.pyi
14.098 KB
8 May 2024 6.34 PM
root / root
0644
_asyncio_loop.py
0.583 KB
8 May 2024 6.34 PM
root / root
0644
_better_exceptions.py
19.527 KB
8 May 2024 6.34 PM
root / root
0644
_colorama.py
1.634 KB
8 May 2024 6.34 PM
root / root
0644
_colorizer.py
14.259 KB
8 May 2024 6.34 PM
root / root
0644
_contextvars.py
0.313 KB
8 May 2024 6.34 PM
root / root
0644
_ctime_functions.py
1.495 KB
8 May 2024 6.34 PM
root / root
0644
_datetime.py
3.669 KB
8 May 2024 6.34 PM
root / root
0644
_defaults.py
2.86 KB
8 May 2024 6.34 PM
root / root
0644
_error_interceptor.py
1.081 KB
8 May 2024 6.34 PM
root / root
0644
_file_sink.py
14.186 KB
8 May 2024 6.34 PM
root / root
0644
_filters.py
0.604 KB
8 May 2024 6.34 PM
root / root
0644
_get_frame.py
0.447 KB
8 May 2024 6.34 PM
root / root
0644
_handler.py
12.338 KB
8 May 2024 6.34 PM
root / root
0644
_locks_machinery.py
1.276 KB
8 May 2024 6.34 PM
root / root
0644
_logger.py
93.723 KB
8 May 2024 6.34 PM
root / root
0644
_recattrs.py
2.795 KB
8 May 2024 6.34 PM
root / root
0644
_simple_sinks.py
3.646 KB
8 May 2024 6.34 PM
root / root
0644
_string_parsers.py
4.597 KB
8 May 2024 6.34 PM
root / root
0644
py.typed
0 KB
8 May 2024 6.34 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF