Skip to content

Commit c05cbea

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-95853: Can't flush Images cache in admin
1 parent 8248518 commit c05cbea

File tree

1 file changed

+5
-0
lines changed
  • lib/internal/Magento/Framework/Filesystem/Directory

1 file changed

+5
-0
lines changed

lib/internal/Magento/Framework/Filesystem/Directory/Write.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,15 @@ public function delete($path = null)
189189
} else {
190190
try {
191191
$this->deleteFilesRecursively($absolutePath);
192+
} catch (FileSystemException $e) {
193+
$exceptionMessages[] = $e->getMessage();
194+
}
195+
try {
192196
$this->driver->deleteDirectory($absolutePath);
193197
} catch (FileSystemException $e) {
194198
$exceptionMessages[] = $e->getMessage();
195199
}
200+
196201
if (!empty($exceptionMessages)) {
197202
throw new FileSystemException(
198203
new \Magento\Framework\Phrase(

0 commit comments

Comments
 (0)