If a binary is contained in a folder in a zip archive (i.e. bin_path_in_archive has a prefix), extracting will fail with an io error "No such file or directory", because fs::File::create in Extract::extract_into and Extract::extract_path is passed the path of the binary including the zipped parent folder, which does not exist yet.
The commit adds tests for these cases and cleans up some existing tests.
If a binary is contained in a folder in a zip archive (i.e.
bin_path_in_archive
has a prefix), extracting will fail with an io error "No such file or directory", becausefs::File::create
inExtract::extract_into
andExtract::extract_path
is passed the path of the binary including the zipped parent folder, which does not exist yet.The commit adds tests for these cases and cleans up some existing tests.