Managers: prepare BackupManager for the upcoming VFS.
This commit is contained in:
parent
ccbafe5e30
commit
9f570a004b
1 changed files with 5 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
#include <Corrade/Containers/GrowableArray.h>
|
#include <Corrade/Containers/GrowableArray.h>
|
||||||
|
#include <Corrade/Containers/Pair.h>
|
||||||
#include <Corrade/Containers/ScopeGuard.h>
|
#include <Corrade/Containers/ScopeGuard.h>
|
||||||
#include <Corrade/Utility/Path.h>
|
#include <Corrade/Utility/Path.h>
|
||||||
#include <Corrade/Utility/String.h>
|
#include <Corrade/Utility/String.h>
|
||||||
|
@ -243,9 +244,11 @@ BackupManager::scanSubdir(Containers::StringView subdir) {
|
||||||
zip_t* zip;
|
zip_t* zip;
|
||||||
for(Containers::StringView file : files_view) {
|
for(Containers::StringView file : files_view) {
|
||||||
Backup backup;
|
Backup backup;
|
||||||
backup.filename = Utility::Path::join(full_subdir, file);
|
backup.filename = Utility::Path::join(subdir, file);
|
||||||
|
|
||||||
zip = zip_open(backup.filename.cbegin(), ZIP_RDONLY, &error_code);
|
auto full_path = Utility::Path::join(full_subdir, file);
|
||||||
|
|
||||||
|
zip = zip_open(full_path.cbegin(), ZIP_RDONLY, &error_code);
|
||||||
if(zip == nullptr) {
|
if(zip == nullptr) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue