copyfiles icon indicating copy to clipboard operation
copyfiles copied to clipboard

copyup behaving differently for mac and windows

Open rupamroy opened this issue 6 years ago • 2 comments

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

rupamroy avatar Oct 10 '18 18:10 rupamroy

try putting double quotes around the server/**/*.json

calvinmetcalf avatar Oct 11 '18 12:10 calvinmetcalf

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.

ramirotw avatar Nov 23 '18 00:11 ramirotw