dg / composer-cleaner

Victor The Cleaner: removes unnecessary files from vendor directory
https://nette.org
134 stars 19 forks source link

Cleaner: improved matchMask() #18

Open janpecha opened 6 years ago

janpecha commented 6 years ago

Cleaner currently supports $ignoreMasks only for files & directories from root of package directory. This PR improves matchMask method and adds support for more complex masks. See Cleaner.clean.phpt for example.

Features:

(Methods collectPaths & matchMask are taken from ftp-deployment, collectPaths is little modified)

PR partially solves issue #13.

janpecha commented 6 years ago

@dg What do you think about this?