copyfiles
copyfiles copied to clipboard
Feature request: Copy from a directory to another directory
I need to be able to copy a directory and all its directories, respecting the local paths to another directory.
This is impossible to do it with this module currently.
- what exactly are you doing? i.e. what is a basic directory setup that causes this to happen?
- what do you expect should happen?
- what actually happens?
copyfiles src/public/* dist/
Should copy the public folder into dist but it copies the src folder instead.
EDIT: copyfiles -u 1 src/public/* dist
this works :D
I'm having this issue as well with copyfiles -u 2 'out/tsc/**' 'out/webpack/**' dist
but it says can't go up that far. I don't want out
, tsc
, or webpack
folder in the output, only the recursive contents. I can't flatten either.
EDIT: Looks like solution here works: https://github.com/calvinmetcalf/copyfiles/issues/61#issuecomment-493139970