Code Duplication    Length = 5-8 lines in 2 locations

lib/private/Files/View.php 2 locations

@@ 365-369 (lines=5) @@
362
				$result = false;
363
			}
364
365
			if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
366
				$storage = $mount->getStorage();
367
				$internalPath = $mount->getInternalPath($absolutePath);
368
				$storage->getUpdater()->remove($internalPath);
369
			}
370
371
			return $result;
372
		}, ['before' => ['path' => $this->getAbsolutePath($path)], 'after' => ['path' => $this->getAbsolutePath($path)]], 'file', 'delete');
@@ 740-747 (lines=8) @@
737
				$result = $this->basicOperation('unlink', $path, array('delete'));
738
			}
739
740
			if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete
741
				$storage = $mount->getStorage();
742
				$internalPath = $mount->getInternalPath($absolutePath);
743
				$storage->getUpdater()->remove($internalPath);
744
				return true;
745
			} else {
746
				return $result;
747
			}
748
		}, ['before' => ['path' => $this->getAbsolutePath($path)], 'after' => ['path' => $this->getAbsolutePath($path)]], 'file', 'delete');
749
	}
750