Code Duplication    Length = 8-10 lines in 2 locations

lib/private/Files/Storage/DAV.php 2 locations

@@ 185-194 (lines=10) @@
182
	}
183
184
	/** {@inheritdoc} */
185
	public function rmdir($path) {
186
		$this->init();
187
		$path = $this->cleanPath($path);
188
		// FIXME: some WebDAV impl return 403 when trying to DELETE
189
		// a non-empty folder
190
		$result = $this->simpleResponse('DELETE', $path . '/', null, 204);
191
		$this->statCache->clear($path . '/');
192
		$this->statCache->remove($path);
193
		return $result;
194
	}
195
196
	/** {@inheritdoc} */
197
	public function opendir($path) {
@@ 326-333 (lines=8) @@
323
	}
324
325
	/** {@inheritdoc} */
326
	public function unlink($path) {
327
		$this->init();
328
		$path = $this->cleanPath($path);
329
		$result = $this->simpleResponse('DELETE', $path, null, 204);
330
		$this->statCache->clear($path . '/');
331
		$this->statCache->remove($path);
332
		return $result;
333
	}
334
335
	/** {@inheritdoc} */
336
	public function fopen($path, $mode) {