Skip to content

Commit

Permalink
KDESKTOP-1355 - initial fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementKunz committed Nov 7, 2024
1 parent 70967fd commit 7c69635
Showing 1 changed file with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,34 @@ ExitCode RemoteFileSystemObserverWorker::processAction(ActionInfo &actionInfo, s
break;

// Item renamed
case ActionCode::actionCodeRename:
case ActionCode::actionCodeRename: {
_syncPal->removeItemFromTmpBlacklist(actionInfo.snapshotItem.id(), ReplicaSide::Remote);
const bool exploreDir =
actionInfo.snapshotItem.type() == NodeType::Directory && !_snapshot->exists(actionInfo.snapshotItem.id());
_snapshot->updateItem(actionInfo.snapshotItem);
if (exploreDir) {
// Retrieve all children
const ExitCode exitCode = exploreDirectory(actionInfo.snapshotItem.id());

switch (exitCode) {
case ExitCode::NetworkError:
if (exitCause() == ExitCause::NetworkTimeout) {
_syncPal->addError(Error(errId(), exitCode, exitCause()));
}
break;
case ExitCode::LogicError:
if (exitCause() == ExitCause::FullListParsingError) {
_syncPal->addError(Error(_syncPal->syncDbId(), name(), exitCode, exitCause()));
}
break;
default:
break;
}

if (exitCode != ExitCode::Ok) return exitCode;
}
break;
}

// Item edited
case ActionCode::actionCodeEdit:
Expand Down

0 comments on commit 7c69635

Please sign in to comment.