mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] delete outdated update folder
This commit is contained in:
@ -441,6 +441,9 @@ void CSvcManager::clearTempFiles(const tstring &prefix, const tstring &except)
|
||||
NS_File::removeFile(filePath);
|
||||
}
|
||||
}
|
||||
tstring updPath = NS_File::parentPath(NS_File::appPath()) + UPDATE_PATH;
|
||||
if (except.empty() && NS_File::dirExists(updPath))
|
||||
NS_File::removeDirRecursively(updPath);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user