theseer / Autoload

A lightweight php namespace aware autoload generator and phar archive builder
Other
388 stars 47 forks source link

Exclude directory #113

Closed echodreamz closed 1 month ago

echodreamz commented 1 year ago

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!

theseer commented 1 year ago

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 commented 1 year ago

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 commented 1 month ago

No Feedback provided.