timkendrick / recursive-copy

Simple, flexible file copy utility
96 stars 18 forks source link

Apply filters before traversing #4

Closed kmxz closed 7 years ago

kmxz commented 7 years ago

The original implementation apply filters after recursively traversing all files and directories.

In some cases, huge directories are entirely filtered out by a user-supplied filter. Such directories do not need to be traversed at all.

Therefore, applying filters before traversing can save a lot of time and memory.

kmxz commented 7 years ago

Seems it cannot work with globs. I'll close this.