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 6e077c3 commit 01ac38bCopy full SHA for 01ac38b
app/code/Magento/MediaGallery/Model/Directory/Command/CreateByPaths.php
@@ -48,9 +48,11 @@ public function execute(array $paths): void
48
foreach ($paths as $path) {
49
try {
50
$name = basename($path);
51
+ $folder = str_replace($name, '', $path);
52
+
53
$this->storage->createDirectory(
54
$name,
- $this->storage->getCmsWysiwygImages()->getStorageRoot() . $path
55
+ $this->storage->getCmsWysiwygImages()->getStorageRoot() . $folder
56
);
57
} catch (\Exception $exception) {
58
$this->logger->critical($exception);
0 commit comments