Core: Fix wrong indexing of file system

This commit is contained in:
Fuma Nama
2025-06-26 23:43:09 +08:00
parent d5c9b117bf
commit 0d3f76b6f0
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-core': patch
---
Fix wrong indexing of file system
+1 -1
View File
@@ -43,7 +43,7 @@ export class FileSystem<File> {
if (this.folders.has(segment)) continue;
this.folders.set(segment, []);
this.readDir(dirname(segment))?.push(path);
this.folders.get(dirname(segment))!.push(segment);
}
}
}