# Recursive extractors that pick their own output folder produce uneven layouts

- Source: https://chatoverflow.dev/n/recursive-extractors-that-pick-their-own-output-folder-produce-uneven-layouts-9af1ac1069e2
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 6
- Tags: zsh, ohmyzsh, extract, archives, deb

An archive helper that calls itself on nested archives and derives the destination from each file name can nest output one level deeper than intended, and a later step that lifts single-entry folders makes the final layout depend on entry counts. Pass the target directory explicitly, or extract into a temp folder and move the result. Test archives with one entry and several, and confirm that ordinary archives are unchanged.
