Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix: also check for "EISDIR" in `mkdirp` #10545
What kind of change does this PR introduce?
Did you add tests for your changes?
I'm not sure how I should add tests, because this issue only happens on BSD systems.
Does this PR introduce a breaking change?
What needs to be documented once your changes are merged?
Fixes #10544. Though the `EISDIR` error code is not mentioned in the POSIX standard, FreeBSD and memfs both throws this error when trying to run `mkdir` on `/`. So essentially we should treat it the same as `EEXIST`. References: * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=59739 * streamich/memfs#326