Set extractingFile to name of current file
(forgot since was unused)
This commit is contained in:
parent
ccf19f777d
commit
e8c5e345c5
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ Result extractArchive(std::string archivePath, std::string wantedFile, std::stri
|
|||
std::string entryName(archive_entry_pathname(entry));
|
||||
std::smatch match;
|
||||
if(std::regex_search(entryName, match, std::regex(wantedFile))) {
|
||||
extractingFile = (entryName.length() > wantedFile.length() ? entryName.substr(wantedFile.length()) : wantedFile);
|
||||
ret = EXTRACT_ERROR_NONE;
|
||||
|
||||
// make directories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue