Skip to content

fs: fix mkdirp return UV_EROFS on read-only fs

Fixes: https://github.com/nodejs/node/issues/47098

I tested the changes manually by mounting a read-only fs and trying to create a new folder inside it. I honestly wouldn't know how to write tests on these changes without mounting a RO file systems during test sets, and I don't know if this is the best solution. If anyone has advice on how to do this, it is welcome

Merge request reports

Loading