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 f0fab44 commit ef2731bCopy full SHA for ef2731b
app/code/Magento/MediaGallery/Model/ResourceModel/DeleteAssetsByPaths.php
@@ -55,6 +55,7 @@ public function execute(array $paths): void
55
foreach ($paths as $path) {
56
try {
57
$this->validateDirectoryPath($path);
58
+ $path = count(explode('/', $path)) > 1 ? $path : '/' . $path;
59
$this->deleteAssetsByDirectoryPath($path);
60
} catch (\Exception $exception) {
61
$this->logger->critical($exception);
0 commit comments