Remove old files
remove-old-files is simple utility to clear folder for example with daily database dumps and leave only 3 newest.
remove-old-files --help
usage: remove-old-files [-h] -x REMOVE_OLDER_THAN [-o] [-m FILE_MASK] [-d] folder
Removing files from folder which have modify file date older than X days.
positional arguments:
folder Directory where are files to be removed located.
optional arguments:
-h, --help show this help message and exit
-x REMOVE_OLDER_THAN, --older-than REMOVE_OLDER_THAN
Remove files older than X (s)econds/(m)inutes/(h)ours/(D)ays. Example: 3D for 3 days.
-o, --only-if-newer Remevove older files than X smhD only if there are any newer files found.
-m FILE_MASK, --file-mask FILE_MASK
Regexp matching filenames for removing. Example: ".*-db-dump-.*"
-d, --dry-run Dry run, withouth removing files.
Example how to leave only 3 days old dumps
remove-old-files -x 3D -o /dumps
Metadata
Release files for remove-old-files 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remove-old-files-1.0.2.tar.gz | 3.7 kB | Without provenance | Details for remove-old-files-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| remove_old_files-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for remove_old_files-1.0.2-py3-none-any.whl |
Total release size: 7.6 kB
Release files / remove-old-files-1.0.2.tar.gz
| Download URL | remove-old-files-1.0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2594d20ec10254f3c93be773f705bf1e209ad552923609fd41c144baf9dc360
|
|
BLAKE2b-256 checksum How to use checksums |
9ac280290b308ee14f9d26db184e0ba039bac0d97c68456820366c8f594f485a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.16
|
Release files / remove_old_files-1.0.2-py3-none-any.whl
| Download URL | remove_old_files-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dede51fb1eb80ded9845be3c7424e845c119faa76f9759cd0dfcc31d13f41557
|
|
BLAKE2b-256 checksum How to use checksums |
1d05229631f3eae051a3893098e9647c96ffb8bf7146b339267044086c8dabbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.16
|
Security for remove-old-files 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.