3 ms·
Thanks for the share, I still find it hilarious how Python is by default installed on most distros, I was working on some compression tools and by default the o
by appleaday1 3y ago
Thanks for the share, I still find it hilarious how Python is by default installed on most distros, I was working on some compression tools and by default the os didn't come with the ability zip/unzip toolsets, but the python standard library zipfile did.
https://docs.python.org/3/library/zipfile.html https://docs.python.org/3/library/zipfile.html
- codetrotter 3y ago> by default the os didn't come with the ability zip/unzip Some versions of tar are able to extract zip files. Try tar xf somefile.zip It might or might not work with the version in your OS
- BerislavLopac 3y agoYou don't even have to write a custom script around the library: python -m zipfile -e monty.zip target-dir/ https://docs.python.org/3/library/zipfile.html#command-line-interface https://docs.python.org/3/library/zipfile.html#command-line-...