node-sync-files icon indicating copy to clipboard operation
node-sync-files copied to clipboard

Add ability to filter files using a pattern

Open shaddyz opened this issue 9 years ago • 5 comments

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.

shaddyz avatar May 18 '16 21:05 shaddyz

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

ghost avatar Sep 05 '16 23:09 ghost

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

gregjacobs avatar Oct 11 '16 20:10 gregjacobs

@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 avatar Nov 03 '16 21:11 AndyOGo

@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 avatar Nov 04 '16 00:11 shaddyz

@shaddyz thanks, np. Yeah, I hope it solves it well^^

AndyOGo avatar Nov 04 '16 07:11 AndyOGo