Code Duplication    Length = 5-8 lines in 2 locations

lib/private/Files/View.php 2 locations

@@ 350-354 (lines=5) @@
347
			$result = false;
348
		}
349
350
		if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
351
			$storage = $mount->getStorage();
352
			$internalPath = $mount->getInternalPath($absolutePath);
353
			$storage->getUpdater()->remove($internalPath);
354
		}
355
		return $result;
356
	}
357
@@ 696-703 (lines=8) @@
693
			return $this->removeMount($mount, $absolutePath);
694
		}
695
		$result = $this->basicOperation('unlink', $path, array('delete'));
696
		if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
697
			$storage = $mount->getStorage();
698
			$internalPath = $mount->getInternalPath($absolutePath);
699
			$storage->getUpdater()->remove($internalPath);
700
			return true;
701
		} else {
702
			return $result;
703
		}
704
	}
705
706
	/**