Skip Navigation

I made a little tool to unzip archives in a sane way

github.com GitHub - eeriemyxi/vert: Sane way to extract/view archived contents.

Sane way to extract/view archived contents. Contribute to eeriemyxi/vert development by creating an account on GitHub.

GitHub - eeriemyxi/vert: Sane way to extract/view archived contents.

I like trying out new things quite frequently and often times these tools are packed in an archive file. But I'm in constant fear whenever I am to unpack those archives because sometimes there are hundreds of files and the person who packed them wouldn't even do the bare minimum of nesting them inside a directory.

Dolphin (file explorer) had a useful thing where it would detect whether the contents are already nested and if they are not only then it would nest them inside a directory. I tried searching for something similar for the CLI but couldn't find anything so here it is. Another benefit is that it supports .zip, .tar.xz, .tar.gz simultaneously so I don't need to deal with manpages of unzip, tar thousand times just because I keep forgetting how to use them. Now it's just vert x file.zip.

I can add support for a few more formats but I don't feel the need at least for now (PRs welcome).

12

You're viewing a single thread.

12 comments
  • Good luck with the project.

    I want to request a not-feature: One time I extracted an archive with an odd command that ended up dumping all its contents without directories straight into the base folder of the archive without a way to undo that. Please don't make that possible with your tool. 😂

    I had to manually clean up the directory.

    • Vert guarantees a single file/directory when you extract something with it. If there are more than 1 file in the archive it will nest them in a directory. I have no plans to add any flags or anything to make it extract without nesting either.

You've viewed 12 comments.