Skip to content

Commit 9cf105a

Browse files
committed
fix output folder for extract context case
1 parent d482b5d commit 9cf105a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/in_context.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ struct SimpleIOContext : AppContextShareImpl {
217217
ectx = std::move(uniq);
218218
} else {
219219
if (!mainSettings.extractSettings.folderPerArc) {
220-
outPath = workingFile.GetFolder();
220+
outPath = AFileInfo(outPath).GetFolder();
221221
} else {
222-
es::mkdir(outPath);
223222
outPath.push_back('/');
224223
}
225224

225+
mkdirs(outPath);
226226
auto uniq = std::make_unique<IOExtractContext>(outPath);
227227
uniq->forEachFile = forEachFile;
228228
ectx = std::move(uniq);

0 commit comments

Comments
 (0)