Code Duplication    Length = 5-8 lines in 2 locations

lib/private/Files/View.php 2 locations

@@ 345-349 (lines=5) @@
342
			$result = false;
343
		}
344
345
		if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
346
			$storage = $mount->getStorage();
347
			$internalPath = $mount->getInternalPath($absolutePath);
348
			$storage->getUpdater()->remove($internalPath);
349
		}
350
		return $result;
351
	}
352
@@ 690-697 (lines=8) @@
687
			return $this->removeMount($mount, $absolutePath);
688
		}
689
		$result = $this->basicOperation('unlink', $path, array('delete'));
690
		if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
691
			$storage = $mount->getStorage();
692
			$internalPath = $mount->getInternalPath($absolutePath);
693
			$storage->getUpdater()->remove($internalPath);
694
			return true;
695
		} else {
696
			return $result;
697
		}
698
	}
699
700
	/**