arfoll / unrarall

bash script to unrar everything and cleanup in a given directory
GNU General Public License v3.0
260 stars 68 forks source link

Request: Trash #25

Open snickers2k opened 9 years ago

snickers2k commented 9 years ago

Hey. Really nice tool, thx for that. Only thing i'm missing is an Option to Trash the files instead of deleting them. Would be really awesome if you could add such function. thx!

arfoll commented 9 years ago

Where would we trash them? Problem is different OSs/distros have different place to store the trash. Typically it's somewhere buried in /home//.local/ not sure in osx.... Maybe instead of rm there could be a flag to add a 'move to' location?

snickers2k commented 9 years ago

Yes, that would be really great!

delcypher commented 9 years ago

@snickers2k Perhaps you could try adding support for the Trash tool?

snickers2k commented 9 years ago

I'm sorry, but i'm using unrarall on my linux server.. A simple option for the user like "--trash /path/to/trash" which would result in a "mv /location/path/ /trash/path/" instead of "rm /location/path/" , like arfoll mentioned, would be really great.