google / skicka

Command-line utility for working with Google Drive. Join the mailing list at https://groups.google.com/forum/#!forum/skicka-users.
Apache License 2.0
1.3k stars 118 forks source link

Rm "older than" #86

Open pquerner opened 9 years ago

pquerner commented 9 years ago

Would be nice if you'd have an option which would delete files (or folders in a specific path) older than X. Where X could be "3d" for "3 days" or "5w" for "5 weeks" etc.

mmp commented 9 years ago

This is fairly specific functionality; as an alternative, what about an option to have 'skicka ls' generate its output in JSON format? Then you could e.g. do a 'skicka ls -r' at the folder where you want to do this and then process the JSON yourself and then generate the set of 'skicka rm' calls that you want.

pquerner commented 9 years ago

"Do it yourself or let it do the same program" Tricky question. I tend to give "do it yourself" a try.