| Crates.io | cabinet |
| lib.rs | cabinet |
| version | 0.6.1 |
| created_at | 2022-04-17 16:19:31.59076+00 |
| updated_at | 2023-02-24 14:43:25.569212+00 |
| description | A convenient file sorting utility |
| homepage | |
| repository | https://github.com/rayokamoto/cabinet |
| max_upload_size | |
| id | 569502 |
| size | 92,215 |
A convenient, cross-platform file sorting system that sorts files based on their attributes, such as file type, file name, and date modified.
Disclaimer: Note that features may be added, revised, or removed at any time as this is in active development
Clone the repository
git clone https://github.com/rayokamoto/cabinet
cd cabinet
Build with cargo
cargo build --release
cab <command> [options] [<path>]
date - Sort by date modified (before or after given date in YYYY-MM-DD format)name - Sort by name of the file (by whether given pattern is in the name or not)size - Sort by size of the file in KB (by whether file is smaller or larger than given size)type - Sort by file type (e.g. .jpg, .png, .pdf, etc.)multisort - Sort files based on all the above attributesThere are two options for sorting files: normal paths and path templates:
When you run a command, you must provide a path/directory to sort. Relative paths also work - e.g. if you are in a directory with the folder projects, simply typing projects as your path will work.
No flags provided will default to using normal paths:
cab type "C:\Users\User\Downloads"
cab type "/home/User/Downloads"
With templates, you can sort directories quickly. Invoke using the -t or --template option:
cab type -t downloads
Currently, the following templates are available:
documentsdownloadsdesktophome (e.g. C:\Users\User\ or /home/User/)music (or audio)picturesvideos (or movies)For testing, such as generating test files to sort, Python is used. Python 3.9 or higher is required.