Skip to content
A basic hack to organize files in a folder. Categorizes different files in corresponding folders.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
file_organizer.rb
test_files.rb

README.md

file_organizer

A basic hack to organize files in a folder. Categorizes different files in corresponding folders. Currently very basic utility. Working: alt tag How to run: Add the path of the directory(file_organizer) to PATH variable in linux.
Change the directory to one which you want to organize Then do ruby file_organizer.rb to run
Or to make it executable do chmod +x file_organizer.rb
Then you can run as ./file_organizer.rb

Follow this to make it a executable script: http://commandercoriander.net/blog/2013/02/16/making-a-ruby-script-executable/
Then you can simple run with typing file_organizer

Choose the option and see the results. Two options:

  1. Press 1: Manually enter file extensions
    eg: pdf,doc,mp3
    The list should be comma seperated.
  2. Press 2: Organize everything.

Requirements:
Ruby 2.1

To do:

  1. Command line interface
  2. Addition of more type of files
  3. Currently not handling any exceptions.
You can’t perform that action at this time.