|
@@ 217-221 (lines=5) @@
|
| 214 |
|
Dir::register($id, $content); |
| 215 |
|
return opendir('fakedir://' . $id); |
| 216 |
|
} catch (ClientHttpException $e) { |
| 217 |
|
if ($e->getHttpStatus() === 404) { |
| 218 |
|
$this->statCache->clear($path . '/'); |
| 219 |
|
$this->statCache->set($path, false); |
| 220 |
|
return false; |
| 221 |
|
} |
| 222 |
|
$this->convertException($e, $path); |
| 223 |
|
} catch (\Exception $e) { |
| 224 |
|
$this->convertException($e, $path); |
|
@@ 653-657 (lines=5) @@
|
| 650 |
|
$response = $this->client->request($method, $this->encodePath($path), $body); |
| 651 |
|
return $response['statusCode'] == $expected; |
| 652 |
|
} catch (ClientHttpException $e) { |
| 653 |
|
if ($e->getHttpStatus() === 404 && $method === 'DELETE') { |
| 654 |
|
$this->statCache->clear($path . '/'); |
| 655 |
|
$this->statCache->set($path, false); |
| 656 |
|
return false; |
| 657 |
|
} |
| 658 |
|
|
| 659 |
|
$this->convertException($e, $path); |
| 660 |
|
} catch (\Exception $e) { |