-
Notifications
You must be signed in to change notification settings - Fork 103
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
Filter #74
Comments
the cause: when a regex filter is provided as an option, the first check is made against the path name, and if the path does not match the regex option, then the callback function is called with no error, and the code is exited without processing any of the files within the folder. this change simply ignores the first iteration through the startCopy function, which is the path name.
+1 I'm confused as well! |
fs-extra actually uses this library for copying, but checks whether the directory exists first and creates it if not. However I don't think this will address the ultimate filter issue. |
With the power of regex, you can solve this issue:
This will match:
But won't match:
Simply add additional file extensions to match to the regex or statement e.g. Running from package.json
It does copy all of the folders even if they are empty but hey, it works! |
this change addresses issue AvianFlu#74 - Filter, submitted by CSester.
Hi, I tried to copy all json files in a folder without success.
As the source folder name doesn't fit the *.json mask, content is not explored. Did I misunderstand the purpose of the filter, or should only filenames be checked, and not folder names ?
Regards
The text was updated successfully, but these errors were encountered: