Code Duplication    Length = 8-10 lines in 2 locations

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

@@ 178-187 (lines=10) @@
175
	}
176
177
	/** {@inheritdoc} */
178
	public function rmdir($path) {
179
		$this->init();
180
		$path = $this->cleanPath($path);
181
		// FIXME: some WebDAV impl return 403 when trying to DELETE
182
		// a non-empty folder
183
		$result = $this->simpleResponse('DELETE', $path . '/', null, 204);
184
		$this->statCache->clear($path . '/');
185
		$this->statCache->remove($path);
186
		return $result;
187
	}
188
189
	/** {@inheritdoc} */
190
	public function opendir($path) {
@@ 323-330 (lines=8) @@
320
	}
321
322
	/** {@inheritdoc} */
323
	public function unlink($path) {
324
		$this->init();
325
		$path = $this->cleanPath($path);
326
		$result = $this->simpleResponse('DELETE', $path, null, 204);
327
		$this->statCache->clear($path . '/');
328
		$this->statCache->remove($path);
329
		return $result;
330
	}
331
332
	/** {@inheritdoc} */
333
	public function fopen($path, $mode) {