Autoload icon indicating copy to clipboard operation
Autoload copied to clipboard

Exclude directory

Open echodreamz opened this issue 1 year ago • 2 comments

Is there a way I am missing to exclude an entire directory and it's contents?

I have tried...

-e "folder/*"

However, the items in this folder are still added to the output. I am using Windows.

Thanks you and great project!

echodreamz avatar Nov 09 '23 20:11 echodreamz

I don't use windows, so this answer may be off, but I'd bet that's a shell problem: You need to use single quotes ' to not have it resolve the* before passing it into phpab.

theseer avatar Nov 18 '23 22:11 theseer

Additionally, the match operation is performed on the actual path, before it's added to the map (or skipped). So it is unlikely that folder/* will ever match. Try '*/folder/*'.

theseer avatar Nov 18 '23 22:11 theseer