Skip to main content
#+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

Release files for sortdir 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sortdir 0.2.2
File Size Uploaded
sortdir-0.2.2.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sortdir 0.2.2
File Interpreter ABI Platform
sortdir-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / sortdir-0.2.2.tar.gz

Download URL sortdir-0.2.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b84c81eafeb2fe5491a368feedb4d1722325c3567b1fa81ac91292baf10ce2c0
BLAKE2b-256 checksum
How to use checksums
91e04a971e8e65b74233d7b20b3d75e7b1058b192afb6d460dd3d4dad0be4477
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.6 Linux/5.15.12

Release files / sortdir-0.2.2-py3-none-any.whl

Download URL sortdir-0.2.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
047750d83f03c1120b1ee7e93d51517a6fcde3c4407b50a5ad4cab34b69b6eeb
BLAKE2b-256 checksum
How to use checksums
35e834ba963014ff6010b887e549de8eef29caa80023b09d5b6238c039dd096f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.6 Linux/5.15.12

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page