fix(cli): allows extracting files without separate directory entries
Some zip files do not list directories separately from files. For example, a zip might contain `dir/file.txt` without a corresponding entry for just `dir/`. This should be okay, so we just create the leading paths for the files we extract as necessary. Also adds tests for the expected and dangerous path cases of `extract_zip`.
This commit is contained in:
4 files changed
+56
-2
No files matched your search
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Reference in new issue
Block a user