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
@@ 700-707 (lines=8) @@
697
		} else {
698
			$result = $this->basicOperation('unlink', $path, ['delete']);
699
		}
700
		if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
701
			$storage = $mount->getStorage();
702
			$internalPath = $mount->getInternalPath($absolutePath);
703
			$storage->getUpdater()->remove($internalPath);
704
			return true;
705
		} else {
706
			return $result;
707
		}
708
	}
709
710
	/**