# Conflicts:
#	package.json
#	src/server/route/routes/importComics.routes.ts
This commit is contained in:
2021-05-07 08:58:53 -07:00
4 changed files with 460 additions and 59 deletions

View File

@@ -39,9 +39,9 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
// extractedData,
// });
// }
// return res.json({
// extractedData,
// });
return res.json({
foo,
});
});
router.route("/walkFolder").post(async (req: Request, res: Response) => {

View File

@@ -183,6 +183,7 @@ export const unzip = async (
break;
}
if (fileName !== "" && entry.type !== "Directory") {
logger.info(`Attempting to write ${fileName}`);
entry.pipe(createWriteStream(paths.targetPath + "/" + fileName));
extractedFiles.push({
name: fileName,