Tool to recursively collapse a directory. copies (moves) all children files into to the current directory
git clone https://github.com/OrangeCrush/collapse.git cd collapse mv collapse.rb /usr/bin/collapse chmod +x /usr/bin/collapse
collapse [-D] [dir/to/collapse]
-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