mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +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) {
|
||||
return await readdir(`${this.base}/${path}`);
|
||||
try {
|
||||
return await readdir(`${this.base}/${path}`);
|
||||
} catch (_) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
dispose() {}
|
||||
|
||||
Reference in new issue
Block a user