Summary
If the destination directory does not exist, exarch extract fails with:
Error: I/O error while processing 'archive.tar.gz': destination directory does not exist: /path/to/dest
Every major archive tool (tar, unzip, 7z, bsdtar) creates the destination directory automatically. Requiring it to exist in advance is a friction point and breaks common scripting patterns like:
exarch extract release.tar.gz ./dist/
Proposed behavior
If the destination directory does not exist, create it (including intermediate directories, equivalent to mkdir -p) before extraction begins. If creation fails, report the I/O error.
This matches the behavior of:
tar -xf archive.tar.gz -C ./dist/ (creates ./dist/ if absent)
unzip archive.zip -d ./dist/
7z x archive.7z -o./dist/
Summary
If the destination directory does not exist,
exarch extractfails with:Every major archive tool (tar, unzip, 7z, bsdtar) creates the destination directory automatically. Requiring it to exist in advance is a friction point and breaks common scripting patterns like:
Proposed behavior
If the destination directory does not exist, create it (including intermediate directories, equivalent to
mkdir -p) before extraction begins. If creation fails, report the I/O error.This matches the behavior of:
tar -xf archive.tar.gz -C ./dist/(creates ./dist/ if absent)unzip archive.zip -d ./dist/7z x archive.7z -o./dist/