Fix scanner Dirent typing after branch consolidation
This commit is contained in:
parent
89876b1862
commit
48009e2d4f
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import fs from 'node:fs/promises';
|
import fs from 'node:fs/promises';
|
||||||
|
import type { Dirent } from 'node:fs';
|
||||||
import os from 'node:os';
|
import os from 'node:os';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
|
|
||||||
|
|
@ -155,7 +156,7 @@ async function scanRoot(
|
||||||
}
|
}
|
||||||
|
|
||||||
stats.scannedDirectories += 1;
|
stats.scannedDirectories += 1;
|
||||||
let entries: fs.Dirent[];
|
let entries: Dirent[];
|
||||||
try {
|
try {
|
||||||
entries = await fs.readdir(current.dir, { withFileTypes: true });
|
entries = await fs.readdir(current.dir, { withFileTypes: true });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue