Code Duplication    Length = 5-8 lines in 2 locations

lib/private/Files/View.php 2 locations

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