Skip to content
Snippets Groups Projects
Commit 32b777f9 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

archiver: cleanup

Change-Id: Idbb8720de936661b01fcea97faeab92d0526b6c2
parent 8f0e570b
No related branches found
No related tags found
No related merge requests found
......@@ -296,8 +296,7 @@ uncompressArchive(const std::string& archivePath, const std::string& dir, const
const auto& fileMatchPair = f(filename);
if (fileMatchPair.first) {
auto filePath = dir + DIR_SEPARATOR_STR + fileMatchPair.second;
std::string directory(filePath);
directory = directory.substr(0, directory.find_last_of(DIR_SEPARATOR_CH));
std::string directory = filePath.substr(0, filePath.find_last_of(DIR_SEPARATOR_CH));
fileutils::check_dir(directory.c_str());
mz_zip_reader_entry_open(zip_handle);
void* buffStream = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment