mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
load readdir
This commit is contained in:
1 parent
8c08a00d64
commit
4015c103cf
1 file changed
+3
@@ -10,7 +10,10 @@ export class LocalVFS extends AbstractVFS {
|
|||||||
|
|
||||||
async _init() {
|
async _init() {
|
||||||
const path = await import("node:path/posix");
|
const path = await import("node:path/posix");
|
||||||
|
const fs = await import("node:fs/promises");
|
||||||
|
|
||||||
this.normalizePath = path.normalize;
|
this.normalizePath = path.normalize;
|
||||||
|
this.readdir = fs.readdir;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user