We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c317f74 + 3646e88 commit 7ff1568Copy full SHA for 7ff1568
1 file changed
src/scripts/utils.ts
@@ -233,7 +233,7 @@ export const sanitizeName = (name: string) =>
233
* @returns full path to the entry
234
*/
235
export const fullPathFromDirent = (dirent: Dirent): string =>
236
- path.join(dirent.path, dirent.name);
+ path.join(dirent.parentPath, dirent.name);
237
238
/**
239
* Returns the absolute path of the files within a directory
@@ -254,7 +254,7 @@ export const getFilepathsWithinDir = async (
254
[dirAbsolutePath]
255
: // readdir returns relative filepaths 🥴
256
(await readdir(dirAbsolutePath)).map((p) =>
257
- path.join(dir.path, dir.name, p),
+ path.join(dir.parentPath, dir.name, p),
258
);
259
};
260
0 commit comments