Giter Site home page Giter Site logo

sorta's Introduction

sorta

Get rid of clutter in your directories. Sorta organizes your files by moving them to different folders based on their filetype and extensions.

We tend to download files on our PC's very often and usually this tends to pile up and before you know it, your downloads folder turns into a messy room. Or, you might just like to be organized and have a nice looking desktop. Sorta will take care of this for you by moving your notes, documents, music, images and videos into categorized folders.

It then takes this a step further by creating subfolders that stores files with the same extension.

Installation

$ pip install sorta

Basic Usage

Organizes files in your (documents,desktop, and downloads directories) by their filetypes.

$ sorta

Organize files in a single specified directory by their filetype.

$ sorta -d /path/to/directory

By category

By default, sorta groups your files by their filetype. You can also choose to organize them by categories by using the command line flags '-c' or '--category'. You will have to create your own categories by using the '-ac' or '--addcategory' flags when sorta is first installed. These categories contain keywords or phrases that you would specify (it is best to make them as descriptive as possible so that Sorta can make the correct assignments). If a keyword/phrase was found in a filename, the file will be moved to the corresponding category's folder. Files that did not match any categories will simply be ignored.


Organize your files in (documents,desktop and downloads) by category.

$ sorta -c

Organize your files in a specific directory by category.

$ sorta -d /path/to/directory -c

Allow sorta to run at intervals

Note: In order to run Sorta in the background, you'll have to run a daemon command or your system's equivalent with Sorta along with the specified arguments(see below) as the process. Here is an example of running Sorta indefinitely, allowing it to clean up your directories periodically every 15 minutes. You can stop this by pressing Ctrl+c.

$ sorta -b -i 15

Command Line Arguments

usage: sorta [-h] [-b] [-d] [-i] [-c] [-ac]

Sorta, organize your filesystem. Running sorta without arguments organizes
your files in (documents,desktop, and downloads) by their filetype.

optional arguments:
  -h, --help          show this help message and exit
  -b, --background    Runs sorta indefinitely.
  -d , --directory    The directory you want to run sorta on.
  -i , --interval     How frequently you want sorta to run, in minutes.
  -c, --category      Sort files by category.
  -ac, --addcategory  Add or update an existing category to group files by.

sorta's People

Contributors

jordpatte avatar jordanpatterson1939 avatar

Watchers

 avatar

sorta's Issues

Ability to sort files by category

If one has a lot of pdf documents, they should be able to create a list of categories. Each category would have a list of keywords which would the be used to classify files and put them in the appropriate folder(named after the category).

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.