Deal with deleted move targets (Issue: 273) (#278)

if the move target has been deleted before the monitor action completes,
the monitor action throws an exception when stat-ing the target for
mtime. Do not do anything in case the move target has disappeared
This commit is contained in:
Norbert Preining 2018-12-08 03:02:47 +09:00 committed by abraunegg
parent 3608dcc4c2
commit 6a62406db7

View file

@ -1677,6 +1677,10 @@ final class SyncEngine
uploadDeleteItem(fromItem, from);
uploadNewFile(to);
} else {
if (!exists(to)) {
log.vlog("uploadMoveItem target has disappeared: ", to);
return;
}
SysTime mtime = timeLastModified(to).toUTC();
JSONValue diff = [
"name": JSONValue(baseName(to)),