A modular command-line file management tool written in Python.
fileops is a CLI application that helps you organize, search, and delete files efficiently from the terminal.
- Organize files by extension
- Search files by name (with optional recursion)
- Delete files by name pattern
- Dry-run mode
- Force mode (skip confirmation)
- Logging support
- Installable as a Python package
- Unit tested (pytest)
- Verbose mode
fileops organize --path ./downloadsOptions:
--dry-run# simulate without moving files--verbose# detailed output--config# custom config file
fileops search --path ./documents --name reportOptions:
--recursive--dry-run--verbose
fileops delete --path ./temp --name testOptions:
--force# skip confirmation--dry-run--verbose--recursive
If you downloaded the ZIP file, extract it and navigate into the project folder.
python -m venv venvWindows (PowerShell):
.\venv\Scripts\ActivateMac/Linux:
source venv/bin/activateYou should now see (venv) in your terminal.
pip install -e .fileops --helpIf the help message appears, the installation was successful.
Make sure the virtual environment is activated.
Install pytest if needed:
pip install pytestRun the tests:
python -m pytest