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

removeTree() thinks it fails with ENOTEMPTY, but works on second try #147

Open
gausie opened this issue Aug 11, 2015 · 2 comments
Open

removeTree() thinks it fails with ENOTEMPTY, but works on second try #147

gausie opened this issue Aug 11, 2015 · 2 comments

Comments

@gausie
Copy link

gausie commented Aug 11, 2015

As said in the title, I get an Exception ENOTEMPTY when I run removeTree() on a directory for the first time, but if I run it again it works without issue.

@kriskowal
Copy link
Owner

Patches welcome. Thank you for isolating.

@djabraham
Copy link

I noticed this within a test module, when attempting to immediately delete a folder after creation, or very shortly thereafter. Perhaps a lock is pending removal, or perhaps the list of items being recursively removed did not include a recently added item.

By simply adding a timeout, the problem was resolved (for us at least).

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

3 participants