Cabinet

Cross-platform file sorting system that sorts files based on their attributes, such as file type, file name and date modified.

NOTE: The commands and their syntax may change at any point since this is in active development. This README will be updated accordingly.


In future, options to do things like renaming and deleting a bunch of files may be implemented, though that is not a priority.

Currently implemented:


Installation

Clone the repository git clone https://github.com/rayokamoto/cabinet cd cabinet Build with cargo cargo build --release

Usage

cab <command> [<options>] <path>

Commands

There are two options for sorting files: absolute path and path templates:

Using absolute paths:

Use -a or --absolute to use absolute paths. Absolute paths are used by default. cab type -a "C:\Users\User\Downloads" cab type -a "/home/User/Downloads" No flags provided will default to absolute path: cab type "C:\Users\User\Downloads" cab type "/home/User/Downloads"

Using templates

With templates, you can sort directories quickly. Invoke using the -t or --template option: cab type -t downloads Currently, the following templates are available: * Documents * Downloads * Desktop * Home directory (e.g. C:\Users\User\ or /home/User/) * Music (or Audio) * Pictures * Videos (or Movies)

Testing

For testing, such as generating test files to sort, Python is used. Python 3.7+ is recommended.