r/opendirectories • u/External-Drive6208 • 15h ago
Misc Stuff Made an extension that shows what's inside a zip on an open directory before you download it
You find backup_2019.zip on some server, it's 30 GB, and the only way to know what's in it is to download all of it. That's why I made this browser extension (I'm the dev, it's free and open source).
It reads only the file list stored at the end of the zip, so you see the folders and files with their sizes without downloading the zip itself. From there you can tick the files you want and download just those, open a text file, json or pdf in the preview, or grab 50 random files to see what the rest is like. If there are photos, there's an image grid (turn it on in settings) that loads thumbnails as you scroll.
On a directory listing it also picks up the zip links on the page, so you don't have to copy them one by one.
It only does .zip, no rar, 7z or tar. The server has to support range requests. Most do, and when one doesn't it tells you. Password zips work if you have the password.
Files go straight from the server to your PC and nothing goes through mine. No account. It works in Chrome, Edge and Brave on Windows, Mac and Linux.
https://github.com/CincaAlex/LinkUnzip
Has anyone got a server where it breaks? Those are the ones I'd like to look at.