mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-26 02:22:13 +02:00
Fix crash when trying to sync broken symbolic link (#1917)
* Check the response for directory checks as to if it generates a file exception error
This commit is contained in:
parent
5d320505c7
commit
29b0ef0b98
|
@ -3469,6 +3469,8 @@ final class SyncEngine
|
|||
{
|
||||
assert(item.type == ItemType.dir);
|
||||
if (exists(path)) {
|
||||
// Fix https://github.com/abraunegg/onedrive/issues/1915
|
||||
try {
|
||||
if (!isDir(path)) {
|
||||
log.vlog("The item was a directory but now it is a file");
|
||||
uploadDeleteItem(item, path);
|
||||
|
@ -3480,6 +3482,11 @@ final class SyncEngine
|
|||
uploadDifferences(child);
|
||||
}
|
||||
}
|
||||
} catch (FileException e) {
|
||||
// display the error message
|
||||
displayFileSystemErrorMessage(e.msg, getFunctionName!({}));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// Directory does not exist locally
|
||||
// If we are in a --dry-run situation - this directory may never have existed as we never downloaded it
|
||||
|
|
Loading…
Reference in a new issue