warshield icon indicating copy to clipboard operation
warshield copied to clipboard

Implement glob option

Open quantumsheep opened this issue 6 years ago • 2 comments

Implement -g/--glob Implement glob file searching

Command example warshield encrypt -g "^[a].*$" will encrypt every files that start by the letter a.

quantumsheep avatar Oct 28 '18 17:10 quantumsheep

Hey, I would like to look into this issue and give it a shot 👍

prnthh avatar Nov 26 '18 18:11 prnthh

Hey 👋 Sure, do as you please! I will gladly merge your modifications when you're done 😄

The implementation need to be in getFiles() method, that's the method that crawl files: it need to get a boolean to know if the directory parameter will be a glob. Then pass this argument from encryptRecursive()/decryptRecursive() and you're done!

quantumsheep avatar Nov 26 '18 19:11 quantumsheep