mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
add support for missing vfs0 dirs
This commit is contained in:
1 parent
cb2d795461
commit
0f47208f5e
1 file changed
+5
-1
@@ -24,7 +24,11 @@ export class LocalVFS extends AbstractVFS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async dir(path: string) {
|
async dir(path: string) {
|
||||||
return await readdir(`${this.base}/${path}`);
|
try {
|
||||||
|
return await readdir(`${this.base}/${path}`);
|
||||||
|
} catch (_) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {}
|
dispose() {}
|
||||||
|
|||||||
Reference in new issue
Block a user