Code Duplication    Length = 8-10 lines in 2 locations

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

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