Detect modified files and update them

The old file is delete, the modified file is inserted and the existing metadata is copied over. The added date is updated to avoid new matches during the update process.
This commit is contained in:
Luis Ángel San Martín
2023-06-05 23:28:12 +02:00
parent 68ece533e1
commit 8520a29a05
2 changed files with 59 additions and 22 deletions

View File

@ -47,6 +47,7 @@ private:
qulonglong insertFolders(); // devuelve el id del último folder añadido (último en la ruta)
bool checkCover(const QString &hash);
void insertComic(const QString &relativePath, const QFileInfo &fileInfo);
void replaceComic(const QString &relativePath, const QFileInfo &fileInfo, ComicDB *comic);
// qulonglong insertFolder(qulonglong parentId,const Folder & folder);
// qulonglong insertComic(const Comic & comic);
bool stopRunning;