Skip to content

Commit f6840b7

Browse files
chore: tweaks
1 parent 0011385 commit f6840b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const separateFilesAndDirs = (fileInfos: Array<FileInfo>): FileAndDirs => ({
1010

1111
const findRec = (currentPath: string): Array<FileInfo> => {
1212
const getStat = (entry: string): FileInfo => {
13-
const target = path.join(currentPath, entry);
13+
const target = path.resolve(currentPath, entry);
1414
const stat = fs.statSync(target);
1515

1616
return {

0 commit comments

Comments
 (0)