GRAYBYTE WORDPRESS FILE MANAGER1038

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/inotify/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/inotify//calls.py
import logging
import ctypes

import inotify.library

_LOGGER = logging.getLogger(__name__)

_LIB = inotify.library.instance


class InotifyError(Exception):
    def __init__(self, message, *args, **kwargs):
        self.errno = ctypes.get_errno()
        message += " ERRNO=(%d)" % (self.errno,)

        super(InotifyError, self).__init__(message, *args, **kwargs)

def _check_zero(result):
    if result != 0:
        raise InotifyError("Call failed (should return zero): (%d)" % 
                           (result,))

    return result

def _check_nonzero(result):
    if result == 0:
        raise InotifyError("Call failed (should return nonzero): (%d)" % 
                           (result,))

    return result

def _check_nonnegative(result):
    if result == -1:
        raise InotifyError("Call failed (should not be -1): (%d)" % 
                           (result,))

    return result

inotify_init = _LIB.inotify_init
inotify_init.argtypes = []
inotify_init.restype = _check_nonnegative

inotify_add_watch = _LIB.inotify_add_watch
inotify_add_watch.argtypes = [
    ctypes.c_int, 
    ctypes.c_char_p, 
    ctypes.c_uint32]

inotify_add_watch.restype = _check_nonnegative

inotify_rm_watch = _LIB.inotify_rm_watch
inotify_rm_watch.argtypes = [ctypes.c_int, ctypes.c_int]
inotify_rm_watch.restype = _check_nonnegative

if getattr(_LIB, 'errno', None) is not None:
    errno = _LIB.errno
elif getattr(_LIB, 'err', None) is not None:
    errno = _LIB.err
else:
    raise EnvironmentError("'errno' not found in library")

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2025 08:31:29
root / root
0755
__pycache__
--
April 04 2025 08:00:21
root / root
0755
resources
--
April 04 2025 08:00:21
root / root
0755
__init__.py
0.022 KB
April 04 2025 08:00:21
root / root
0644
adapters.py
12.88 KB
April 04 2025 08:00:21
root / root
0644
calls.py
1.498 KB
April 04 2025 08:00:21
root / root
0644
constants.py
2.195 KB
April 04 2025 08:00:21
root / root
0644
library.py
0.169 KB
April 04 2025 08:00:21
root / root
0644
test_support.py
0.374 KB
April 04 2025 08:00:21
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF