Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const sanitizeName = (name: string) =>
* @returns full path to the entry
*/
export const fullPathFromDirent = (dirent: Dirent): string =>
path.join(dirent.path, dirent.name);
path.join(dirent.parentPath, dirent.name);

/**
* Returns the absolute path of the files within a directory
Expand All @@ -253,7 +253,7 @@ export const getFilepathsWithinDir = async (
[dirAbsolutePath]
: // readdir returns relative filepaths 🥴
(await readdir(dirAbsolutePath)).map((p) =>
path.join(dir.path, dir.name, p),
path.join(dir.parentPath, dir.name, p),
);
};

Expand Down