calvinmetcalf / copyfiles

copy files on the command line
MIT License
411 stars 52 forks source link

Copy files from text input #116

Open chladnefazole opened 1 year ago

chladnefazole commented 1 year ago

Hey, is it possible right now with this extension, to copy all the files that are listed in a separate text or JSON file? Or, an exclusion list from a text file would work too. Kind of like how ESLint has .eslintignore, for files it shouldn't process.

For example, I want to copy all files into a dist folder. So I make a separate distfiles.txt that looks like this:

folder1
folder2
routes.ts
package.json

And then I run copyfiles like this, for example: copyfiles -filelist distfiles.txt dist