|
@@ 227-231 (lines=5) @@
|
| 224 |
|
} |
| 225 |
|
return IteratorDirectory::wrap($content); |
| 226 |
|
} catch (ClientHttpException $e) { |
| 227 |
|
if ($e->getHttpStatus() === Http::STATUS_NOT_FOUND) { |
| 228 |
|
$this->statCache->clear($path . '/'); |
| 229 |
|
$this->statCache->set($path, false); |
| 230 |
|
return false; |
| 231 |
|
} |
| 232 |
|
$this->convertException($e, $path); |
| 233 |
|
} catch (\Exception $e) { |
| 234 |
|
$this->convertException($e, $path); |
|
@@ 272-276 (lines=5) @@
|
| 269 |
|
); |
| 270 |
|
$this->statCache->set($path, $response); |
| 271 |
|
} catch (ClientHttpException $e) { |
| 272 |
|
if ($e->getHttpStatus() === Http::STATUS_NOT_FOUND) { |
| 273 |
|
$this->statCache->clear($path . '/'); |
| 274 |
|
$this->statCache->set($path, false); |
| 275 |
|
return false; |
| 276 |
|
} |
| 277 |
|
$this->convertException($e, $path); |
| 278 |
|
} catch (\Exception $e) { |
| 279 |
|
$this->convertException($e, $path); |
|
@@ 660-664 (lines=5) @@
|
| 657 |
|
$response = $this->client->request($method, $this->encodePath($path), $body); |
| 658 |
|
return $response['statusCode'] == $expected; |
| 659 |
|
} catch (ClientHttpException $e) { |
| 660 |
|
if ($e->getHttpStatus() === Http::STATUS_NOT_FOUND && $method === 'DELETE') { |
| 661 |
|
$this->statCache->clear($path . '/'); |
| 662 |
|
$this->statCache->set($path, false); |
| 663 |
|
return false; |
| 664 |
|
} |
| 665 |
|
if ($e->getHttpStatus() === Http::STATUS_METHOD_NOT_ALLOWED && $method === 'MKCOL') { |
| 666 |
|
return false; |
| 667 |
|
} |