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 8248518 commit c05cbeaCopy full SHA for c05cbea
lib/internal/Magento/Framework/Filesystem/Directory/Write.php
@@ -189,10 +189,15 @@ public function delete($path = null)
189
} else {
190
try {
191
$this->deleteFilesRecursively($absolutePath);
192
+ } catch (FileSystemException $e) {
193
+ $exceptionMessages[] = $e->getMessage();
194
+ }
195
+ try {
196
$this->driver->deleteDirectory($absolutePath);
197
} catch (FileSystemException $e) {
198
$exceptionMessages[] = $e->getMessage();
199
}
200
+
201
if (!empty($exceptionMessages)) {
202
throw new FileSystemException(
203
new \Magento\Framework\Phrase(
0 commit comments