Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaner: improved matchMask() #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

janpecha
Copy link

@janpecha janpecha commented Sep 2, 2018

  • bug fix? no
  • new feature? yes

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)

PR partially solves issue #13.

@janpecha
Copy link
Author

@dg What do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant