@@ 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'); |
|
@@ 739-746 (lines=8) @@ | ||
736 | $result = $this->basicOperation('unlink', $path, ['delete']); |
|
737 | } |
|
738 | ||
739 | if (!$result && !$this->file_exists($path)) { //clear ghost files from the cache on delete |
|
740 | $storage = $mount->getStorage(); |
|
741 | $internalPath = $mount->getInternalPath($absolutePath); |
|
742 | $storage->getUpdater()->remove($internalPath); |
|
743 | return true; |
|
744 | } else { |
|
745 | return $result; |
|
746 | } |
|
747 | }, ['before' => ['path' => $this->getAbsolutePath($path)], 'after' => ['path' => $this->getAbsolutePath($path)]], 'file', 'delete'); |
|
748 | } |
|
749 |