copyfiles icon indicating copy to clipboard operation
copyfiles copied to clipboard

Feature request: Copy from a directory to another directory

Open rbatllet opened this issue 5 years ago • 3 comments

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.

rbatllet avatar Jan 17 '20 13:01 rbatllet

  1. what exactly are you doing? i.e. what is a basic directory setup that causes this to happen?
  2. what do you expect should happen?
  3. what actually happens?

calvinmetcalf avatar Jan 17 '20 17:01 calvinmetcalf

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

SupertigerDev avatar Feb 29 '20 14:02 SupertigerDev

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

kalbert312 avatar Mar 24 '20 19:03 kalbert312