|
@@ 747-753 (lines=7) @@
|
| 744 |
|
return $remoteMtime > $time; |
| 745 |
|
} |
| 746 |
|
} catch (ClientHttpException $e) { |
| 747 |
|
if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) { |
| 748 |
|
if ($path === '') { |
| 749 |
|
// if root is gone it means the storage is not available |
| 750 |
|
throw new StorageNotAvailableException(get_class($e) . ': ' . $e->getMessage()); |
| 751 |
|
} |
| 752 |
|
return false; |
| 753 |
|
} |
| 754 |
|
$this->convertException($e, $path); |
| 755 |
|
return false; |
| 756 |
|
} catch (\Exception $e) { |
|
@@ 782-788 (lines=7) @@
|
| 779 |
|
if ($e->getHttpStatus() === 423) { |
| 780 |
|
throw new \OCP\Lock\LockedException($path); |
| 781 |
|
} |
| 782 |
|
if ($e->getHttpStatus() === 401) { |
| 783 |
|
// either password was changed or was invalid all along |
| 784 |
|
throw new StorageInvalidException(get_class($e) . ': ' . $e->getMessage()); |
| 785 |
|
} else if ($e->getHttpStatus() === 405) { |
| 786 |
|
// ignore exception for MethodNotAllowed, false will be returned |
| 787 |
|
return; |
| 788 |
|
} |
| 789 |
|
throw new StorageNotAvailableException(get_class($e) . ': ' . $e->getMessage()); |
| 790 |
|
} else if ($e instanceof ClientException) { |
| 791 |
|
// connection timeout or refused, server could be temporarily down |