Skip to content

A simple command line tool to gracefully collapse a directory structure

Notifications You must be signed in to change notification settings

OrangeCrush/collapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Collapse


Tool to recursively collapse a directory. copies (moves) all children files into to the current directory

INSTALLATION:

git clone https://github.com/OrangeCrush/collapse.git
cd collapse
mv collapse.rb /usr/bin/collapse
chmod +x /usr/bin/collapse

USAGE:

collapse [-D] [dir/to/collapse]

FLAGS:

-D , Destructive (Move files, remove empty dirs)

TODO:

  • Read wildcards and support multiple collapsing.
  • Rescue on name collisions
  • Implement File transactions
  • Implement an undo stack(transactions as a precursor to this)
  • Handle symlinks

About

A simple command line tool to gracefully collapse a directory structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published