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

Copying a file on windows fails #257

Closed
liammclennan opened this issue Jul 2, 2016 · 2 comments
Closed

Copying a file on windows fails #257

liammclennan opened this issue Jul 2, 2016 · 2 comments

Comments

@liammclennan
Copy link

I'm using fs.copySync(src, dest);

It works on linux, but on windows I get

Error: ENOENT: no such file or directory, open 'dest'
@jprichardson
Copy link
Owner

Will you post a snippet, including exact file names reproducing the problem?

Thanks.

@liammclennan
Copy link
Author

The problem was a colon in the file name, so something like:

fs.copySync(src, 'fo:o.txt');

The fs.open function produces the same result. There is no way for this to actually work. A better error message would be nice, but I think this is a problem in node, not fs-extra.

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