We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 308ac7e commit a14244eCopy full SHA for a14244e
lib/internal/Magento/Framework/Filesystem/Directory/Write.php
@@ -215,7 +215,7 @@ private function deleteFilesRecursively(string $path)
215
$exceptionMessages = [];
216
$entitiesList = $this->driver->readDirectoryRecursively($path);
217
foreach ($entitiesList as $entityPath) {
218
- if (!$this->driver->isDirectory($entityPath)) {
+ if ($this->driver->isFile($entityPath)) {
219
try {
220
$this->driver->deleteFile($entityPath);
221
} catch (FileSystemException $e) {
0 commit comments