Fileman
Fileman was originally designed to solve the Windows delete issue when a folder contains files whose path is greater than 260 characters. Over time, it got extended to support other features like renaming files following patterns. Though it was originally developed to solve a specific Windows limitation, Fileman can obviously be used on any other platform supporting ruby.
Installation
Add this line to your application's Gemfile:
gem 'fileman'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fileman
Usage
Overview
Once installed, Fileman is immediately available in the terminal through the 'fileman' or 'fm' command. For more details, simply type:
fm
Examples
Delete a folder
fm rm your_folder
Rename a folder as well as all its subfolders
fm rn "your_folder" "new_name"
Rename a folder as well as all its subfolders, including files
fm rn "your_folder" "new_name" -i
Rename a folder as well as all its subfolders, including files (files extension are removed)
fm rn "your_folder" "new_name" -ie
Contributing
- Fork it ( https://github.com/[my-github-username]/fileman/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request