mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-31 21:12:15 +02:00
Fix application crash when unable to rename folder structure due to unhandled file-system issue (#1366)
* Fix application crash when unable to rename folder structure due to unhandled file-system issue
This commit is contained in:
parent
71601d3240
commit
fd04d632d6
|
@ -2523,7 +2523,14 @@ final class SyncEngine
|
||||||
safeRename(newPath);
|
safeRename(newPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rename(oldPath, newPath);
|
// try and rename path, catch exception
|
||||||
|
try {
|
||||||
|
log.vdebug("Calling rename(oldPath, newPath)");
|
||||||
|
rename(oldPath, newPath);
|
||||||
|
} catch (FileException e) {
|
||||||
|
// display the error message
|
||||||
|
displayFileSystemErrorMessage(e.msg, getFunctionName!({}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// handle changed content and mtime
|
// handle changed content and mtime
|
||||||
// HACK: use mtime+hash instead of cTag because of https://github.com/OneDrive/onedrive-api-docs/issues/765
|
// HACK: use mtime+hash instead of cTag because of https://github.com/OneDrive/onedrive-api-docs/issues/765
|
||||||
|
|
Loading…
Reference in a new issue