File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/MediaStorage/Model/File/Storage/Directory Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ public function importDirectories($dirs)
193
193
}
194
194
195
195
try {
196
- $ dir ['path ' ] = ltrim ($ dir ['path ' ], '. ' );
196
+ $ dir ['path ' ] = ltrim ($ dir ['path ' ], './ ' );
197
197
$ directory = $ this ->_directoryFactory ->create (['connectionName ' => $ this ->getConnectionName ()]);
198
198
$ directory ->setPath ($ dir ['path ' ]);
199
199
@@ -203,7 +203,9 @@ public function importDirectories($dirs)
203
203
$ directory ->setUploadTime ($ dateSingleton ->date ());
204
204
$ directory ->save ();
205
205
} else {
206
- throw new \Magento \Framework \Exception \LocalizedException (__ ('Parent directory does not exist: %1 ' , $ dir ['path ' ]));
206
+ throw new \Magento \Framework \Exception \LocalizedException (
207
+ __ ('Parent directory does not exist: %1 ' , $ dir ['path ' ])
208
+ );
207
209
}
208
210
} catch (\Exception $ e ) {
209
211
$ this ->_logger ->critical ($ e );
You can’t perform that action at this time.
0 commit comments