Skip to content

Commit 6255064

Browse files
author
repo-visualizer
committed
ensure paths are relative in fs.statSync
1 parent e30bbb1 commit 6255064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12853,7 +12853,7 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) =
1285312853
if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) {
1285412854
continue;
1285512855
}
12856-
const info2 = import_fs.default.statSync(fullPath);
12856+
const info2 = import_fs.default.statSync(`./${fullPath}`);
1285712857
const stats3 = await addItemToTree(fullPath, info2.isDirectory());
1285812858
if (stats3)
1285912859
children2.push(stats3);

src/process-dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob
3838
continue;
3939
}
4040

41-
const info = fs.statSync(fullPath);
41+
const info = fs.statSync(`./${fullPath}`);
4242
const stats = await addItemToTree(
4343
fullPath,
4444
info.isDirectory(),

0 commit comments

Comments
 (0)