While renaming a file and if one of the parent paths do not exist the error code is being overwritten to EBUSY instead of reporting the actual error:
Error no 44 Error: ENOENT Message: No such file or directory
Reported error: emscripten-core/emscripten#11804