We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7503f6f commit 07a00d1Copy full SHA for 07a00d1
src/library_fs.js
@@ -1076,7 +1076,7 @@ FS.staticInit();
1076
if ((flags & {{{ cDefs.O_EXCL }}})) {
1077
throw new FS.ErrnoError({{{ cDefs.EEXIST }}});
1078
}
1079
- } else if(isDirPath) {
+ } else if (isDirPath) {
1080
throw new FS.ErrnoError({{{ cDefs.EISDIR }}});
1081
} else {
1082
// node doesn't exist, try to create it
test/fs/test_fs_eisdir.c
@@ -29,8 +29,8 @@ void setup() {
29
30
31
int main() {
32
- setup();
33
- open("./does-not-exist/", O_CREAT);
34
- assert(errno == EISDIR);
35
- printf("success\n");
+ setup();
+ open("./does-not-exist/", O_CREAT);
+ assert(errno == EISDIR);
+ printf("success\n");
36
0 commit comments