diff options
Diffstat (limited to 'data.cpp')
-rw-r--r-- | data.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -556,8 +556,7 @@ void DataManager::SetBackupFolder() if (zip_path.size() < storage_path.size()) { SetValue(TW_ZIP_LOCATION_VAR, storage_path); } else { - zip_root= zip_path; - zip_root.resize(storage_path.size()); + zip_root = TWFunc::Get_Root_Path(zip_path); if (zip_root != storage_path) { LOGINFO("DataManager::SetBackupFolder zip path was %s changing to %s, %s\n", zip_path.c_str(), storage_path.c_str(), zip_root.c_str()); SetValue(TW_ZIP_LOCATION_VAR, storage_path); |