Skip to content

Commit 7503f6f

Browse files
committed
Fix
1 parent d09310e commit 7503f6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library_fs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,10 +1053,11 @@ FS.staticInit();
10531053
mode = 0;
10541054
}
10551055
var node;
1056-
var isDirPath = path.endsWith("/");
1056+
var isDirPath;
10571057
if (typeof path == 'object') {
10581058
node = path;
10591059
} else {
1060+
isDirPath = path.endsWith("/");
10601061
// noent_okay makes it so that if the final component of the path
10611062
// doesn't exist, lookupPath returns `node: undefined`. `path` will be
10621063
// updated to point to the target of all symlinks.

0 commit comments

Comments
 (0)