mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-11 10:16:39 +02:00
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:
parent
3608dcc4c2
commit
6a62406db7
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue