copyfiles
copyfiles copied to clipboard
copyup behaving differently for mac and windows
I have a project with the following structure for the folder structure
I_server
I___config
I____app.properties.json
I and running the following command copyup server/**/*.json dist/
In mac I get the right copy done as expected and the output looks like this
I_dist
I___config
I____app.properties.json
But in windows 10 the same command gives the following results
I_dist
I__server
I___config
I____app.properties.json
Can you tell me the correct command so that in windows it should result into the same output as mac
try putting double quotes around the server/**/*.json
We are having the same issue, on OSX and Linux it's working fine but not on Windows.
if (path.basename(args.argv.$0) === 'copyup') {
args.default('u', '1');
}
path.basename(args.argv.$0)
always resolves to copyfiles
, it doesn't matter if the script is called with copyup or copyfiles. So basically the up
param is never applied.