1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:15:10 +00:00
Commit graph

5 commits

Author SHA1 Message Date
Ben Wiederhake
538a3a2579 Userland: Add missing checks for MappedFile.is_valid() 2020-07-31 11:34:06 +02:00
AnotherTest
d6c7cdce98 unzip: Correct compression method offset value 2020-07-14 12:05:37 +02:00
AnotherTest
3a7a689b87 unzip: Remove some magic numbers and create directories when needed
This commit also adds an assert about the compression method instead of
just writing out the compressed data.
2020-07-13 15:28:54 +02:00
AnotherTest
6a265f7c21 unzip: mmap() the zip file if possible to avoid spamming syscalls
This patch makes `unzip' mmap the zip file instead of seeking the file
repeatedly.
This makes unzipping big files bearable, and unzipping huge files
impossible.
The later could be fixed by mapping/unmapping chunks on the fly once we
have support for mmap() offsets.
2020-07-13 15:28:54 +02:00
Andres Vieira
7433210fa6 Userland: Add unzip command
The unzip command will unzip a zip file passed as an argument into the
current pwd, with the syntax:
   unzip file.zip

This implementation is pretty barebones as it does not support things
like file access times, compression or even compression detection, so
if the user tries to unzip a compressed zip most probably he would find
wrong data inside the files.

However it's an starting point :^)
2020-05-09 23:50:44 +02:00