Code Duplication    Length = 10-10 lines in 2 locations

apps/files_external/lib/storage/dropbox.php 2 locations

@@ 146-155 (lines=10) @@
143
		return $this->id;
144
	}
145
146
	public function mkdir($path) {
147
		$path = $this->root.$path;
148
		try {
149
			$this->dropbox->createFolder($path);
150
			return true;
151
		} catch (\Exception $exception) {
152
			\OCP\Util::writeLog('files_external', $exception->getMessage(), \OCP\Util::ERROR);
153
			return false;
154
		}
155
	}
156
157
	public function rmdir($path) {
158
		return $this->unlink($path);
@@ 210-219 (lines=10) @@
207
		return false;
208
	}
209
210
	public function unlink($path) {
211
		try {
212
			$this->dropbox->delete($this->root.$path);
213
			$this->deleteMetaData($path);
214
			return true;
215
		} catch (\Exception $exception) {
216
			\OCP\Util::writeLog('files_external', $exception->getMessage(), \OCP\Util::ERROR);
217
			return false;
218
		}
219
	}
220
221
	public function rename($path1, $path2) {
222
		try {