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:
possibility to ignore only specific items in subdirectories
possibility to delete items from ignored directories (directories from autoload key in composer.json, etc.)
(Methods collectPaths & matchMask are taken from ftp-deployment, collectPaths is little modified)
Cleaner currently supports
$ignoreMasks
only for files & directories from root of package directory. This PR improvesmatchMask
method and adds support for more complex masks. SeeCleaner.clean.phpt
for example.Features:
autoload
key incomposer.json
, etc.)(Methods
collectPaths
&matchMask
are taken fromftp-deployment
,collectPaths
is little modified)PR partially solves issue #13.