A package to tidy up directories using a configuration file
Project description
tidy-dir
tidy-dir is a simple tool designed to help you clean up your directories. It provides an easy and efficient way to manage and organize your files.
Installation
You can install tidy-dir using pip. Run the following command in your terminal:
pip install tidy-dir
Usage
Using tidy-dir is straightforward. After installation, you can run the command followed by the directory you want to tidy up:
tidy-dir /path/to/your/directory/
For example, if you want to tidy up a directory located at /mydirectory/smt/, you would use:
tidy-dir /mydirectory/smt/
or current directory:
tidy-dir .
Configuration
tidy-dir requires a .tidy-dir-config.json file in the directory you want to tidy up. This configuration file should follow the schema:
{
"new_dir": [".fileextension"]
}
In this schema, replace ".fileextension" with the file extension of the files you want to move to the new directory. For example:
{
"docs": [".txt", ".pdf", ".docx", ".doc", ".pptx", ".ppt", ".xlsx", ".xls"],
"images": [".png", ".jpg", ".jpeg", ".gif", ".svg"],
"videos": [".mp4", ".mov", ".avi", ".mkv", ".wmv"],
"music": [".mp3", ".wav", ".ogg", ".flac", ".m4a"],
"archives": [".zip", ".rar", ".tar", ".gz", ".7z", ".iso", ".xz", ".bz2"],
}
Contributing
Contributions to tidy-dir are always welcome. If you have any ideas or suggestions, feel free to open an issue or submit a pull request.
License
tidy-dir is licensed under the (MIT license)[./LICENSE]. For more information, see the LICENSE file in our repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tidy-dir-0.0.2.tar.gz
.
File metadata
- Download URL: tidy-dir-0.0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b5efb5548dd06c8550855e4b64d34d553d9e9a775fb90404d3da4782d750d1e |
|
MD5 | 7a8514ba80458e8bbc3858220a07bb95 |
|
BLAKE2b-256 | cb176f4405401350d9a17372186c66f61a8800e760c7604c04eb6506383ff7dc |
File details
Details for the file tidy_dir-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: tidy_dir-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b9268908f8de6d9a4af2542ae7e5036eef7d97ecc3863a40f0503da7c2b515 |
|
MD5 | 0efacdf9858a86752e4632f86da28ae8 |
|
BLAKE2b-256 | ca6adf4b442bc6837b0d6f9a2967435decc8e2db1065a910523c5f04b0c1f5df |