Giter Site home page Giter Site logo

cabinet's Introduction

Cabinet

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


Installation

Clone the repository

git clone https://github.com/rayokamoto/cabinet
cd cabinet

Build with cargo

cargo build --release

Usage

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

More in-depth information is available in the features documentation.

Commands

  • 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 attributes

There are two options for sorting files: normal paths and path templates:

Using normal paths

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"

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 (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.9 or higher is required.

cabinet's People

Contributors

rayokamoto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cabinet's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.