mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-19 22:25:03 +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);
|
uploadDeleteItem(fromItem, from);
|
||||||
uploadNewFile(to);
|
uploadNewFile(to);
|
||||||
} else {
|
} else {
|
||||||
|
if (!exists(to)) {
|
||||||
|
log.vlog("uploadMoveItem target has disappeared: ", to);
|
||||||
|
return;
|
||||||
|
}
|
||||||
SysTime mtime = timeLastModified(to).toUTC();
|
SysTime mtime = timeLastModified(to).toUTC();
|
||||||
JSONValue diff = [
|
JSONValue diff = [
|
||||||
"name": JSONValue(baseName(to)),
|
"name": JSONValue(baseName(to)),
|
||||||
|
|
Loading…
Reference in a new issue