diff --git a/src/wasi.ts b/src/wasi.ts index 4af8e1a..9309a05 100644 --- a/src/wasi.ts +++ b/src/wasi.ts @@ -581,6 +581,8 @@ export default class WASI { buffer8.slice(path_ptr, path_ptr + path_len), ); return self.fds[fd].path_create_directory(path); + } else { + return wasi.ERRNO_BADF; } }, path_filestat_get(