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
@@ 696-703 (lines=8) @@
693
		} else {
694
			$result = $this->basicOperation('unlink', $path, array('delete'));
695
		}
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
	/**