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
@@ 694-701 (lines=8) @@
691
		} else {
692
			$result = $this->basicOperation('unlink', $path, array('delete'));
693
		}
694
		if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
695
			$storage = $mount->getStorage();
696
			$internalPath = $mount->getInternalPath($absolutePath);
697
			$storage->getUpdater()->remove($internalPath);
698
			return true;
699
		} else {
700
			return $result;
701
		}
702
	}
703
704
	/**