🛫 unzip one file

This commit is contained in:
2021-04-18 18:25:00 -07:00
parent dc2153e19c
commit baf3d534e7
3 changed files with 29 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import {
unrar,
unzip,
extractMetadataFromImage,
unzipOne,
} from "../../utils/fs.utils";
import { Request, Response } from "express";
@@ -13,7 +14,8 @@ router.route("/getComicCovers").get(async (req: Request, res: Response) => {
// const foo = await extractMetadataFromImage(
// "./comics/covers/Ghosts and Ruins-001.jpg",
// );
const foo = await unzip("st");
// const foo = await unzipOne();
const foo = await unzip("asd");
res.json({
jagan: "trupti",
foo,