copyfiles
copyfiles copied to clipboard
Copy folder from folder
I actually have the following structure:
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
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.
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
throw new Error('cant go up that far');
Getting this error
when I run this command
copyfiles -a true -u 1 build/** ./cordova/www