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

Feature request: Add archive filtering #961

Open
obriat opened this issue Jul 29, 2020 · 1 comment
Open

Feature request: Add archive filtering #961

obriat opened this issue Jul 29, 2020 · 1 comment

Comments

@obriat
Copy link

obriat commented Jul 29, 2020

For security reason I need to search and delete files from my final archive (e.g.: *.txt, *.md, *.json, node_module, ...).
Could filtering parameters be added to the taskPack::addDir taskPack::add methods or add a filtering method :

<?php
$this->taskPack(<archiveFile>)
->addFile('dir/file.txt', 'file.txt')  
->filtering('*.txt', '*.md', 'toto/**/node_module')  
->run();`

I don't want to modify the source folder (I still have git actions to perform on it).
I tried to copy my origin folder but its to slow.
@obriat
Copy link
Author

obriat commented Aug 14, 2020

I made a PR #964, comments are welcome

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

No branches or pull requests

1 participant