sortdir

Sorting directory files made easy.


License
MIT
Install
pip install sortdir==0.2.2

Documentation

sortdir

Tool to keep your directories clean

Table of contents

Installation

pip install sortdir

Usage

When you run the following command the tool will at first perform initial sorting and then start a server which will be watching for new files and moving them to their destination subdirectories defined in your config

sortdir

Configuration

Create a config file in one of the following locations:

  • $HOME/.sortdir.toml
  • $HOME/.config/sortdir/config.toml

Example

[directories]

    [directories."~/Downloads"]
    documents = [
        ".doc",
        ".docx",
        ".ods",
        ".odt",
        ".pdf",
        ".ppt",
        ".pptx",
        ".txt",
        ".xls",
        ".xlsx",
    ]
    images = [".gif", ".heic", ".png", ".jpeg", ".jpg"]

    [directories."~/dev"]
    python = [".py"]
    javascript = [".js"]