Improved file filtering for copyDirSyncRecursive #57

Merged
patrick-steele-idem merged 4 commits from master into master 2013-10-15 15:22:36 -07:00
Showing only changes of commit ba0882a4d1 - Show all commits

View file

@ -72,9 +72,9 @@ wrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end
exclude: regexpOrFunction // An include filter (either a regexp or a function) exclude: regexpOrFunction // An include filter (either a regexp or a function)
}); });
*NOTE:* If a RegExp is provided then then it will be matched against the filename. If a function is // Note: If a RegExp is provided then then it will be matched against the filename. If a function is
provided then the signature should be the following: // provided then the signature should be the following:
`function(filename, dir) { return result; }` // function(filename, dir) { return result; }
// Read lines in from a file until you hit the end // Read lines in from a file until you hit the end
var f = new wrench.LineReader('x.txt'); var f = new wrench.LineReader('x.txt');