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 56d7c49 commit 0002b3aCopy full SHA for 0002b3a
src/library_syscall.js
@@ -827,9 +827,6 @@ var SyscallsLibrary = {
827
__syscall_mkdirat: (dirfd, path, mode) => {
828
path = SYSCALLS.getStr(path);
829
path = SYSCALLS.calculateAt(dirfd, path);
830
- // remove a trailing slash, if one - /a/b/ has basename of '', but
831
- // we want to create b in the context of this function
832
- if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
833
FS.mkdir(path, mode, 0);
834
return 0;
835
},
0 commit comments