Add ability to filter files using a pattern
This tool is almost exactly what I need, however, it's lacking the ability to filter the files that are synchronized. I'd like to be able to direct the tool to only sync html files for instance.
Exactly! I like to sync folder but have to exclude some auto. generated files.
I suggest a syntax like this: sync-files dir1/ dir2/ --exclude=*.css
This would be a great feature.
How about using the minimatch globbing syntax like other file utilities? Would be great to be able to write something like this:
sync-files "src/**/*.+(html|js)" "build/"
node-glob should be able to help with this
@shaddyz @dotmagic @gregjacobs
I recently had the exact same issue.
So I developed my own glob based version.
go check it, hope it helps sync-glob
@AndyOGo looks cool! unfortunately i'm working on a different project now so I don't have a need for it at the moment, but it looks like it will solve the problem. thank you! :+1:
@shaddyz thanks, np. Yeah, I hope it solves it well^^