Skip to content

Commit 299cddd

Browse files
committed
fix another bug in isSubdir
1 parent 89c87de commit 299cddd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/deno_ral/fs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ export function isSubdir(
6262
path1 = toPathString(path1);
6363
path2 = toPathString(path2);
6464

65-
if (resolve(path1) === resolve(path2)) {
65+
path1 = resolve(path1);
66+
path2 = resolve(path2);
67+
68+
if (path1 === path2) {
6669
return false;
6770
}
6871

0 commit comments

Comments
 (0)