AvianFlu / ncp

Asynchronous recursive file copying with Node.js.
MIT License
681 stars 103 forks source link

How to apply filter on files only? #138

Open wildan-m opened 4 years ago

wildan-m commented 4 years ago

Hi,

I have a folder containing js libraries.

source\libs\autoComplete.js\js\autoComplete.min.js source\libs\autoComplete.js\css\autoComplete.css

How could I filter the files without filtering the folder name?

I've tried this:

ncp' 'source/libs/' 'build/source/libs' --filter="^(.(?!.*\.js$|.*\.json))*$"

But it also filters the folder. The folder source\libs\autoComplete.js\ does not exist in the destination.

Thanks