Skip to content

Commit a14244e

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function deleteFilesRecursively(string $path)
215215
$exceptionMessages = [];
216216
$entitiesList = $this->driver->readDirectoryRecursively($path);
217217
foreach ($entitiesList as $entityPath) {
218-
if (!$this->driver->isDirectory($entityPath)) {
218+
if ($this->driver->isFile($entityPath)) {
219219
try {
220220
$this->driver->deleteFile($entityPath);
221221
} catch (FileSystemException $e) {

0 commit comments

Comments
 (0)