Skip to content

Commit

Permalink
implement possible solution for #81
Browse files Browse the repository at this point in the history
  • Loading branch information
fxdeniz committed Nov 26, 2023
1 parent 8c6363a commit 38e8ed2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Server/FileMonitorSubSystem/FileMonitoringManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ void FileMonitoringManager::handleFileMoveEvent(const QString &parentDirPath, co
bool isNewFileFrozen = newFileJson[JsonKeys::File::IsFrozen].toBool();

if(isNewFilePersists && !isNewFileFrozen) // When moved file overwritten to persistent file
{
eventDb->setStatusOfMonitoredFile(_parentDirPath, newFileName, FileSystemEventDb::ItemStatus::Updated);
eventDb->removeNewAddedFile(_parentDirPath, oldFileName);
}
else
{
QJsonObject oldFileJson = fsm->getFileJsonByUserPath(currentOldPath);
Expand Down

0 comments on commit 38e8ed2

Please sign in to comment.