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 details)
Built Distribution
File details
Details for the file sortdir-0.2.2.tar.gz
.
File metadata
- Download URL: sortdir-0.2.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.6 Linux/5.15.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84c81eafeb2fe5491a368feedb4d1722325c3567b1fa81ac91292baf10ce2c0 |
|
MD5 | 906461b5c5f2ec9d9cabbcb309ea433a |
|
BLAKE2b-256 | 91e04a971e8e65b74233d7b20b3d75e7b1058b192afb6d460dd3d4dad0be4477 |
File details
Details for the file sortdir-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: sortdir-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.6 Linux/5.15.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 047750d83f03c1120b1ee7e93d51517a6fcde3c4407b50a5ad4cab34b69b6eeb |
|
MD5 | edcf1367d033dd06d21aba1d06a93ac0 |
|
BLAKE2b-256 | 35e834ba963014ff6010b887e549de8eef29caa80023b09d5b6238c039dd096f |