This commit is contained in:
Rizky 2024-08-16 12:34:59 +07:00
parent 9715ca9f4b
commit 88b99fa86b
1 changed files with 3 additions and 2 deletions

View File

@ -66,9 +66,10 @@ export class Watcher {
const files = await readdir(path); const files = await readdir(path);
for (const file of files) { for (const file of files) {
if (file.startsWith(".") || file === "node_modules") continue; if (file.startsWith(".") || file === "node_modules") continue;
const stats = statSync(file); const fullpath = join(path, file);
const stats = statSync(fullpath);
if (stats.isDirectory()) { if (stats.isDirectory()) {
this.watchers[file] = createWatcher(join(path, file), true); this.watchers[file] = createWatcher(fullpath, true);
} }
} }
} catch (e) { } catch (e) {