drupal-composer / preserve-paths

A composer plugin for keeping specified files and directories when installing/updating new composer packages. Can be used to supported nested packages.
28 stars 28 forks source link

Is it possible to use wildcard? #24

Open hanoii opened 6 years ago

hanoii commented 6 years ago

It doesn't seem to work. I am looking for something like:

"web/sites/default/settings*.php"

jcnventura commented 6 years ago

It's called preserve-paths, not preserve-files.. You'll want to set the rule to "web/sites/default".

alex-moreno commented 6 years ago

what about preserving any folder inside sites/? I agree regex would be an interesting addition

derhasi commented 6 years ago

There is no wildcard or regex support yet. Feel free to post a PR and we will look into it.

alex-moreno commented 6 years ago

fair enough :-)