Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'copySync' doesn't work in sync #200

Closed
yanyu0517 opened this issue Dec 10, 2015 · 2 comments
Closed

'copySync' doesn't work in sync #200

yanyu0517 opened this issue Dec 10, 2015 · 2 comments

Comments

@yanyu0517
Copy link

My file directory like this:

/config
  -mockConfig.json

My code is

var src = path.join(__dirname, '../config'),
        destPath = dest || process.cwd();
// copy folder
fse.copySync(src, destPath + '/config');
console.log('copy ' + src + ' to ' + destPath + '/config')

And console.log will be triggered before folder copy

@jprichardson
Copy link
Owner

Please rewrite your snippet in a reproducible manner. Could you use absolute directory paths and a temp folder like /tmp? This way I can reproduce the issue on my end. Thanks :)

@yanyu0517
Copy link
Author

I have fixed it, it was a mistake!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants