copyfiles icon indicating copy to clipboard operation
copyfiles copied to clipboard

Copy folder from folder

Open Disane87 opened this issue 6 years ago • 3 comments

I actually have the following structure: image

I want to copy the config.json and the folder assets from folder src to dist. Now I use this command:

copyfiles src/config.json src/assets/** dist

But it always copies it itno dist like this: dist/src/asssets for example. I've tried already parameter --up but it diesn't work. How can I achieve the following structure after copy?

  • dist -- assets -- config.json

Disane87 avatar Feb 11 '19 23:02 Disane87

I think you need to run:

copyfiles -u 1 src/assets/** dist

I don't know if it works with both files, but in worst case you could use a second script.

jmajnek avatar Apr 19 '19 07:04 jmajnek

that should probably work for both of them

On Fri, Apr 19, 2019 at 3:54 AM jekelhart [email protected] wrote:

I think you need to run:

copyfiles -u 1 src/assets/** dist

I don't know if it works with both files, but in worst case you could use a second script.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/calvinmetcalf/copyfiles/issues/57#issuecomment-484797158, or mute the thread https://github.com/notifications/unsubscribe-auth/AAITRH6OSVASUGTAASGYGUDPRF3DJANCNFSM4GWVA6TQ .

-- -Calvin W. Metcalf

calvinmetcalf avatar Apr 19 '19 11:04 calvinmetcalf

throw new Error('cant go up that far');

Getting this error when I run this command copyfiles -a true -u 1 build/** ./cordova/www

Ajju2211 avatar Apr 17 '22 19:04 Ajju2211