sphereio / node-s3-utils

A Command Line Interface providing some utilities for managing AWS S3 resources
MIT License
7 stars 2 forks source link

Enable dry run mode for files-delete command #6

Closed svenmueller closed 9 years ago

svenmueller commented 9 years ago

This would makes sense, e.g. if you could test the regular expression and see which files are affected before you use the same regular expression for the delete command

# before running the command
$ s3utils files delete -p <prefix> -r <regex>

# check what files will be removed
$ s3utils files delete -p <prefix> -r <regex> --dry-run
emmenko commented 9 years ago

:+1:

svenmueller commented 9 years ago

i think the files list command also makes sence (we already have the logic we only have to expose it)

emmenko commented 9 years ago

Sure, we can add that command as well. We just need to decide how we want to "provide" the list (I'll create a new ticket)