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 empty folder into an existing file #464
Comments
This behavior is consistent in both CC @jprichardson @manidlou for thoughts here; so far I haven't pinned down why it's doing this. |
@jprichardson @manidlou ping? |
Yeah I also confirm the faulty behavior! However, I applied a possible fix for this issue in #502 that prevents this from happening. When rewriting |
Fixed in 5.0.0 🎉 |
Copy an empty folder into an existing file. I would expect, an error should be thrown as the file cannot be overwritten by a folder. Since the folder is empty, no error is thrown and no folder is created. If the folder is not empty,
ENOENT
is thrown.The text was updated successfully, but these errors were encountered: