mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: hashComparer
This commit is contained in:
@@ -8,6 +8,7 @@ UpdateController::UpdateController(DataParser *parser,SendSystem *sendSystem, QO
|
||||
this->dataParser = parser;
|
||||
this->sendSystem = sendSystem;
|
||||
localPath = QDir::currentPath() + applicationFolderName;
|
||||
calculateStreamingHash();
|
||||
}
|
||||
|
||||
void UpdateController::calculateCommonHash()
|
||||
@@ -69,12 +70,13 @@ void UpdateController::calculateHash(QString path)
|
||||
readSize = qMin(fileSize,bufferSize);
|
||||
}
|
||||
|
||||
file.close();
|
||||
|
||||
|
||||
hashString = QString(hash.result().toHex());
|
||||
currentFile.path = Tools::createLocalPath(fileInfo.absoluteFilePath());
|
||||
currentFile.hash = hashString;
|
||||
files->push_back(currentFile);
|
||||
file.close();
|
||||
}
|
||||
else if (fileInfo.isDir() && !fileInfo.isRoot() && fileInfo.fileName() != "..")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user