Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkyeremeh committed May 30, 2023
1 parent 233b2e7 commit 9bf3ef8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LocalFileStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ api.extract = async function (opts, res) {
let dest = path.dirname(target.absolutePath);
if (mkdir) {
const newDir = path.basename(target.absolutePath).split('.')[0];
const newDirPath = path.resolve(target.absolutePath, newDir);
console.log({ newDirPath });
const newDirPath = path.resolve(dest, newDir);
await fs.mkdirp(newDirPath);
dest = newDirPath;
}
Expand Down

0 comments on commit 9bf3ef8

Please sign in to comment.