🗜 Fixing the unzip method

This commit is contained in:
2021-04-17 16:02:12 -07:00
parent 424c5aded7
commit dc2153e19c
3 changed files with 33 additions and 15 deletions

View File

@@ -3,15 +3,17 @@ import {
walkFolder,
extractArchive,
unrar,
unzip,
extractMetadataFromImage,
} from "../../utils/fs.utils";
import { Request, Response } from "express";
router.route("/getComicCovers").get(async (req: Request, res: Response) => {
// unrar("./comics/covers/");
const foo = await extractMetadataFromImage(
"./comics/covers/Ghosts and Ruins-001.jpg",
);
// const foo = await unrar("./comics/covers/");
// const foo = await extractMetadataFromImage(
// "./comics/covers/Ghosts and Ruins-001.jpg",
// );
const foo = await unzip("st");
res.json({
jagan: "trupti",
foo,