Code Duplication    Length = 5-5 lines in 2 locations

lib/private/files/storage/dav.php 2 locations

@@ 218-222 (lines=5) @@
215
			}
216
			return IteratorDirectory::wrap($content);
217
		} catch (ClientHttpException $e) {
218
			if ($e->getHttpStatus() === 404) {
219
				$this->statCache->clear($path . '/');
220
				$this->statCache->set($path, false);
221
				return false;
222
			}
223
			$this->convertException($e, $path);
224
		} catch (\Exception $e) {
225
			$this->convertException($e, $path);
@@ 624-628 (lines=5) @@
621
			$response = $this->client->request($method, $this->encodePath($path), $body);
622
			return $response['statusCode'] == $expected;
623
		} catch (ClientHttpException $e) {
624
			if ($e->getHttpStatus() === 404 && $method === 'DELETE') {
625
				$this->statCache->clear($path . '/');
626
				$this->statCache->set($path, false);
627
				return false;
628
			}
629
630
			$this->convertException($e, $path);
631
		} catch (\Exception $e) {