A simple CLI tool to organize files in a folder by their extensions.
- Automatically organize files into folders by type (images, documents, videos, etc.)
- Manage custom extension mappings
- Add, remove, and list file extension categories
- Restore default extension mappings
Organizing files with Neatify
# Clone the repository
git clone https://github.com/anmoljhamb/neatify.git
cd neatify
# Install in development mode
pip install -e .pip install neatifyAfter installation, you'll need to set up your configuration file before organizing files.
- Generate the default configuration:
neatify defaultThis creates a comprehensive list of file extensions organized by categories (Images, Documents, Videos, etc.).
- Verify your configuration (optional):
neatify listThis shows all configured categories and their extensions.
- Organize your first folder:
neatify organise /path/to/folderNote: Running
neatify organisewithout first runningneatify defaultwill fail because no configuration file exists yet.
neatify organise /path/to/folderThis will organize all files in the specified folder into subfolders based on their file types.
View all configured file extension categories:
neatify listAdd a new extension to a category:
neatify add Image .webpRemove an extension from a category:
neatify remove Image .webpRemove an entire category:
neatify rmcat oldcategoryClear all extension mappings:
neatify clearRestore the default extension mappings:
neatify defaultUse a custom extensions JSON file:
neatify --file custom_extensions.json organise /path/to/folder# Organize your Downloads folder
neatify organise ~/Downloads
# Add .svg to the image category
neatify add Image .svg
# View all extensions
neatify list
# Remove a category you don't need
neatify rmcat Audio