Skip to main content

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.

Tests Code Quality codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dirganize-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

dirganize-0.1.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page