Skip to main content

Sorting directory files made easy.

Project description

#+TITLE: sortdir

#+BEGIN_QUOTE
Tool to keep your directories clean
#+END_QUOTE

* Table of contents :TOC_2:
- [[#installation][Installation]]
- [[#usage][Usage]]
- [[#configuration][Configuration]]
- [[#example][Example]]

* Installation
#+BEGIN_SRC shell
pip install sortdir
#+END_SRC

* 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

#+BEGIN_SRC shell
sortdir
#+END_SRC

* Configuration
Create a config file in one of the following locations:
- ~$HOME/.sortdir.toml~
- ~$HOME/.config/sortdir/config.toml~

** Example
#+BEGIN_SRC toml
[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"]
#+END_SRC

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

sortdir-0.2.2.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

sortdir-0.2.2-py3-none-any.whl (5.2 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