Add option to always extract to output_dir named after the archive even on single/one file #24

Open
opened 2025-04-09 14:58:19 +00:00 by tcsenpai · 0 comments
Owner

Originally created by @uwidev on 2/12/2025

I wasn't initially aware of this behavior, but when extracting an archive that only has one element, the extracted file gets placed in the root directory (where the extract occurred) rather than a created directory named after archive. This actually resulted in problems for me when having multiple archives that just so happen to have a single file with the same name. This resulted in the filenames colliding and overwriting each other.

Would you consider having a option to always create a folder even if there is only one file?

*Originally created by @uwidev on 2/12/2025* I wasn't initially aware of this behavior, but when extracting an archive that only has one element, the extracted file gets placed in the root directory (where the extract occurred) rather than a created directory named after archive. This actually resulted in problems for me when having multiple archives that just so happen to have a single file with the same name. This resulted in the filenames colliding and overwriting each other. Would you consider having a option to always create a folder even if there is only one file?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/ouch#24
No description provided.