-
Notifications
You must be signed in to change notification settings - Fork 772
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
ensureFile do not create file if there is a folder of the same name at given path #470
Comments
devrafalko
changed the title
ensureFile the same path
ensureFile do not create file if there is a folder of the same name at given path
Jul 30, 2017
This was fixed by #466, but it's not released yet. I'll try to release a new version ASAP. |
Released in fs-extra 4.0.1 🎉 |
great! thank you 👍 |
This was referenced Oct 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there is
./dist/new.js
folder at this path, theensureFile
method do not createnew.js
file and do not throw any error in callback function:err:undefined
.Vice versa, if there is
./dist/new.js
file and I attempt to add folder of the same name and path withensureDir
, this method correctly throws error in the callback function:Error: EEXIST: file already exists.
The text was updated successfully, but these errors were encountered: