Code Duplication    Length = 9-9 lines in 2 locations

apps/files_sharing/lib/sharedstorage.php 2 locations

@@ 259-267 (lines=9) @@
256
		return false;
257
	}
258
259
	public function filetype($path) {
260
		if ($path == '' || $path == '/') {
261
			return 'dir';
262
		} else if ($source = $this->getSourcePath($path)) {
263
			list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
264
			return $storage->filetype($internalPath);
265
		}
266
		return false;
267
	}
268
269
	public function filesize($path) {
270
		$source = $this->getSourcePath($path);
@@ 305-313 (lines=9) @@
302
		return ($this->getPermissions($path) & \OCP\Constants::PERMISSION_SHARE);
303
	}
304
305
	public function file_exists($path) {
306
		if ($path == '' || $path == '/') {
307
			return true;
308
		} else if ($source = $this->getSourcePath($path)) {
309
			list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
310
			return $storage->file_exists($internalPath);
311
		}
312
		return false;
313
	}
314
315
	public function filemtime($path) {
316
		$source = $this->getSourcePath($path);