Skip to content

Commit 0002b3a

Browse files
committed
Don't remove trailing slash
1 parent 56d7c49 commit 0002b3a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/library_syscall.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,9 +827,6 @@ var SyscallsLibrary = {
827827
__syscall_mkdirat: (dirfd, path, mode) => {
828828
path = SYSCALLS.getStr(path);
829829
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);
833830
FS.mkdir(path, mode, 0);
834831
return 0;
835832
},

0 commit comments

Comments
 (0)