|
@@ 770-776 (lines=7) @@
|
| 767 |
|
// force refresh for $path |
| 768 |
|
$this->statCache->remove($path); |
| 769 |
|
$response = $this->propfind($path); |
| 770 |
|
if ($response === false) { |
| 771 |
|
if ($path === '') { |
| 772 |
|
// if root is gone it means the storage is not available |
| 773 |
|
throw new StorageNotAvailableException(get_class($e) . ': ' . $e->getMessage()); |
| 774 |
|
} |
| 775 |
|
return false; |
| 776 |
|
} |
| 777 |
|
if (isset($response['{DAV:}getetag'])) { |
| 778 |
|
$cachedData = $this->getCache()->get($path); |
| 779 |
|
$etag = null; |
|
@@ 799-805 (lines=7) @@
|
| 796 |
|
return $remoteMtime > $time; |
| 797 |
|
} |
| 798 |
|
} catch (ClientHttpException $e) { |
| 799 |
|
if ($e->getHttpStatus() === 405) { |
| 800 |
|
if ($path === '') { |
| 801 |
|
// if root is gone it means the storage is not available |
| 802 |
|
throw new StorageNotAvailableException(get_class($e) . ': ' . $e->getMessage()); |
| 803 |
|
} |
| 804 |
|
return false; |
| 805 |
|
} |
| 806 |
|
$this->convertException($e, $path); |
| 807 |
|
return false; |
| 808 |
|
} catch (\Exception $e) { |