Declutter you folders and get peace of mind. A command-line tool to organize files into category directories.
Project description
dirganize
Declutter you folders and get peace of mind. A command-line tool to organize files into category directories.
Installation
pip install dirganize
Usage
Dirganize has an ultra simple command-line interface.
Just move into the directory you want to organize, and run dirganize
.
You can also specify which folder to organize by using the path
option.
dirganize --path ~/Downloads
If no path is specified, dirganize works on the current directory.
Configuration
By default dirganize
determines the destination folder for a particular file by
guessing its type from its extension.
The
guess_type
function of python's inbuilt module
mimetypes
is used for this purpose.
NOTE Dotfiles are not affected by dirganize.
You can put a .dirganize.yml
file ( inside the folder you want to dirganize )
to provide a custom configuration.
# .dirganize.yml
# folder: [ext1,ext2, ...]
Animations: [gif]
Binaries: [bin,dat]
Basically you have the folder name, mapped to the list of file types to put in that folder.
Dirganize will first try to determine the destination directory from the .dirganize.yml
.
When the yaml configuration file is absent or
the folder for an encountered file type is not defined in the configuration,
dirganize
will fallback to the default technique.
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
File details
Details for the file dirganize-0.1.0.tar.gz
.
File metadata
- Download URL: dirganize-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-55-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3780e85e1e928a90d5c014d36c025d96eb999582ad116d41aaa1e45b687b2f |
|
MD5 | d0b89a7d1208ae812f657d59c5755180 |
|
BLAKE2b-256 | caf8fd7019a91c7bd857a3914e3dbb45424849f16385d3f944ccb91c535b3b3d |
File details
Details for the file dirganize-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: dirganize-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-55-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e921ddbbcac950e66a69619b31edbe15166fd458c2fa1a22f1651292c3f05f |
|
MD5 | 2f127dfc2cb45d8d8310ac8ea031e153 |
|
BLAKE2b-256 | 069801303f154cb8f2b4e533017b3ea2fd657a8c24775265ad63dc1559c4f4c1 |