GRAYBYTE WORDPRESS FILE MANAGER2909

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
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/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils//_modified.py
"""Timestamp comparison of files and groups of files."""

import functools
import os.path

from .errors import DistutilsFileError
from .py39compat import zip_strict
from ._functools import splat


def _newer(source, target):
    return not os.path.exists(target) or (
        os.path.getmtime(source) > os.path.getmtime(target)
    )


def newer(source, target):
    """
    Is source modified more recently than target.

    Returns True if 'source' is modified more recently than
    'target' or if 'target' does not exist.

    Raises DistutilsFileError if 'source' does not exist.
    """
    if not os.path.exists(source):
        raise DistutilsFileError("file '%s' does not exist" % os.path.abspath(source))

    return _newer(source, target)


def newer_pairwise(sources, targets, newer=newer):
    """
    Filter filenames where sources are newer than targets.

    Walk two filename iterables in parallel, testing if each source is newer
    than its corresponding target.  Returns a pair of lists (sources,
    targets) where source is newer than target, according to the semantics
    of 'newer()'.
    """
    newer_pairs = filter(splat(newer), zip_strict(sources, targets))
    return tuple(map(list, zip(*newer_pairs))) or ([], [])


def newer_group(sources, target, missing='error'):
    """
    Is target out-of-date with respect to any file in sources.

    Return True if 'target' is out-of-date with respect to any file
    listed in 'sources'. In other words, if 'target' exists and is newer
    than every file in 'sources', return False; otherwise return True.
    ``missing`` controls how to handle a missing source file:

    - error (default): allow the ``stat()`` call to fail.
    - ignore: silently disregard any missing source files.
    - newer: treat missing source files as "target out of date". This
      mode is handy in "dry-run" mode: it will pretend to carry out
      commands that wouldn't work because inputs are missing, but
      that doesn't matter because dry-run won't run the commands.
    """

    def missing_as_newer(source):
        return missing == 'newer' and not os.path.exists(source)

    ignored = os.path.exists if missing == 'ignore' else None
    return any(
        missing_as_newer(source) or _newer(source, target)
        for source in filter(ignored, sources)
    )


newer_pairwise_group = functools.partial(newer_pairwise, newer=newer_group)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 02 2025 08:36:55
root / root
0755
__pycache__
--
July 02 2025 08:36:55
root / root
0755
command
--
July 02 2025 08:36:55
root / root
0755
__init__.py
0.351 KB
June 09 2025 11:12:39
root / root
0644
_collections.py
5.176 KB
June 09 2025 11:12:39
root / root
0644
_functools.py
1.729 KB
June 09 2025 11:12:39
root / root
0644
_log.py
0.042 KB
June 09 2025 11:12:39
root / root
0644
_macos_compat.py
0.233 KB
June 09 2025 11:12:39
root / root
0644
_modified.py
2.354 KB
June 09 2025 11:12:39
root / root
0644
_msvccompiler.py
19.156 KB
June 09 2025 11:12:39
root / root
0644
archive_util.py
8.371 KB
June 09 2025 11:12:39
root / root
0644
bcppcompiler.py
14.377 KB
June 09 2025 11:12:39
root / root
0644
ccompiler.py
47.504 KB
June 09 2025 11:12:39
root / root
0644
cmd.py
17.444 KB
June 09 2025 11:12:39
root / root
0644
config.py
4.796 KB
June 09 2025 11:12:39
root / root
0644
core.py
9.177 KB
June 09 2025 11:12:39
root / root
0644
cygwinccompiler.py
11.645 KB
June 09 2025 11:12:39
root / root
0644
debug.py
0.136 KB
June 09 2025 11:12:39
root / root
0644
dep_util.py
0.341 KB
June 09 2025 11:12:39
root / root
0644
dir_util.py
7.883 KB
June 09 2025 11:12:39
root / root
0644
dist.py
48.998 KB
June 09 2025 11:12:39
root / root
0644
errors.py
3.505 KB
June 09 2025 11:12:39
root / root
0644
extension.py
10.029 KB
June 09 2025 11:12:39
root / root
0644
fancy_getopt.py
17.479 KB
June 09 2025 11:12:39
root / root
0644
file_util.py
8.021 KB
June 09 2025 11:12:39
root / root
0644
filelist.py
13.394 KB
June 09 2025 11:12:39
root / root
0644
log.py
1.173 KB
June 09 2025 11:12:39
root / root
0644
msvc9compiler.py
29.48 KB
June 09 2025 11:12:39
root / root
0644
msvccompiler.py
23.024 KB
June 09 2025 11:12:39
root / root
0644
py38compat.py
0.212 KB
June 09 2025 11:12:39
root / root
0644
py39compat.py
1.918 KB
June 09 2025 11:12:39
root / root
0644
spawn.py
3.413 KB
June 09 2025 11:12:39
root / root
0644
sysconfig.py
18.484 KB
June 09 2025 11:12:39
root / root
0644
text_file.py
11.802 KB
June 09 2025 11:12:39
root / root
0644
unixccompiler.py
15.236 KB
June 09 2025 11:12:39
root / root
0644
util.py
17.676 KB
June 09 2025 11:12:39
root / root
0644
version.py
12.647 KB
June 09 2025 11:12:39
root / root
0644
versionpredicate.py
5.083 KB
June 09 2025 11:12:39
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF