Closed bebraw closed 11 years ago
Would it be feasible to implement something like this?
fstream .Reader("path/to/dir") .exclude('^.', 'foo.html') .pipe(fstream.Writer("path/to/other/dir"))
I want to copy certain files instead of all. The example skips all the dot files and a certain other file.
you should probably use node-glob to select
How about this?
fstream.Reader({ path: "path/to/dir", filter: function (entry) { return entry.match(someRegexp) } }).pipe(fstream.Writer("path/to/other/dir"))
Would it be feasible to implement something like this?
I want to copy certain files instead of all. The example skips all the dot files and a certain other file.