Code Duplication    Length = 9-9 lines in 2 locations

apps/files_sharing/lib/sharedstorage.php 2 locations

@@ 232-240 (lines=9) @@
229
		return false;
230
	}
231
232
	public function filetype($path) {
233
		if ($path == '' || $path == '/') {
234
			return 'dir';
235
		} else if ($source = $this->getSourcePath($path)) {
236
			list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
237
			return $storage->filetype($internalPath);
238
		}
239
		return false;
240
	}
241
242
	public function filesize($path) {
243
		$source = $this->getSourcePath($path);
@@ 277-285 (lines=9) @@
274
		return ($this->getPermissions($path) & \OCP\Constants::PERMISSION_SHARE);
275
	}
276
277
	public function file_exists($path) {
278
		if ($path == '' || $path == '/') {
279
			return true;
280
		} else if ($source = $this->getSourcePath($path)) {
281
			list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
282
			return $storage->file_exists($internalPath);
283
		}
284
		return false;
285
	}
286
287
	public function filemtime($path) {
288
		$source = $this->getSourcePath($path);