Coder Social home page Coder Social logo

fsorter's Introduction

Fsorter

A file sort utility which helps you to organize your "Downloads" folder, for example.

Requirements: Python 3.

How to use

Simply run fsorter.py with directory specified:

./fsorter.py ~/Downloads

Example output:

funnycatHD.jpg (4.95 MB) -> Pictures
install.sh (12.1 KB) -> Scripts
vacation_20180801.mp4 (182.7 MB) -> Video
dump.bak (5.32 MB) -> Backups
blog_posts.sql (578.64 KB) -> Databases
notes.txt (832.83 KB) -> Documents
copy81.zip (355.5 KB) -> Archives

More info

usage: fsorter.py [-h] [-d PATH] [-t] [-f] [-i] [-n] directory

positional arguments:
  directory

optional arguments:
  -h, --help            show this help message and exit
  -d PATH, --destination PATH
                        directory in which the sorted files will be moved
  -t, --test-run        just print what will be done
  -f, --force           overwrite files if exist
  -i, --interactive     ask for an action (skip/overwrite) for every file
                        conflict
  -n, --include-hidden  include files with leading dot in the filename

License

MIT

fsorter's People

Contributors

mikewent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

a20willa

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.