fix: ensure output dirs exist in extract and API extract

cmdExtract and handleAPIExtract were missing os.MkdirAll calls
while cmdDownload, cmdPipeline, and handleAPIDownload all had
them. The bash script creates dirs internally but this is not
robust — create dirs in Go before shelling out.

Closes #13
This commit is contained in:
2026-06-21 22:04:47 -07:00
parent 4c09fb8d9b
commit bc12130dd6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -391,6 +391,8 @@ func cmdExtract(args []string) {
toolPath = findScript("extract_wavs.sh")
}
os.MkdirAll(*outDir, 0755)
entries, err := os.ReadDir(*isoDir)
if err != nil {
fatal("read dir: %v", err)