Safe, undoable archival and version pruning for local files
Project description
FileShear
FileShear is a Python-based automation tool designed to safely perform bulk file cleanup operations according to user-defined rules. It targets workflows where directories accumulate many redundant or outdated file versions and manual cleanup becomes time-consuming and error-prone.
- Primary goal: Reduce manual effort and risk by automatically identifying files to archive or delete while enforcing strict safety guarantees.
Modes Of Operation
- Whitelist Mode: A user specifies files in the working directory they'd like to keep, then the rest are deleted.
- Version Pruning: A user specifies a base filename or pattern, then all matches except the most recent version are deleted.
- Deletes based on last modified timestamp by default, users can instead specify a "version pattern" to bias with.
- Note: Users can opt for relocation to an archive directory instead of deletion.
Safety Guarantees
This program:
- Communicates the modifications that will be made by a user's input before execution.
- Requests user confirmation.
- Moves files to trash (or archive directory if specified) instead of hard deletion.
- User can then choose to hard delete relocated files.
- Conforms to rigid directory boundaries (never recursing outside the specified root).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fileshear-0.1.0.tar.gz.
File metadata
- Download URL: fileshear-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7004bce8c9fe17284a9b56d55c234a0456d9baca17e3ec4514958c3ae7eada46
|
|
| MD5 |
6d0ac9029eef7fe33bd4e03cc915cb26
|
|
| BLAKE2b-256 |
64d0b4ee2d1fcee93beadfa2f82b01b0d7473fb6daf9e2ebcb88bef1b3d76c4f
|
File details
Details for the file fileshear-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fileshear-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf3160f263310bb56dc74648d303a06edd809b094fc42ca76b27ebe0734a619
|
|
| MD5 |
e9b495c91100a34364a578fca891d594
|
|
| BLAKE2b-256 |
159cc7ffd088eb8d2bb27f13d7bf2a3ac84fb73d2471b53252e9a9232a406f4c
|