Skip to content

Commit 4528e4b

Browse files
committed
B2B-2112: [AWS S3] Test failed to find image in new media gallery
1 parent b0b8fae commit 4528e4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/RemoteStorage/Driver/Adapter/PathUtil.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ class PathUtil
2020
*/
2121
public function pathInfo($path)
2222
{
23+
// phpcs:disable Magento2.Functions.DiscouragedFunction
2324
$pathInfo = ['path' => $path];
2425
$dirname = dirname($path);
2526
if ('' !== $dirname) {
2627
$pathInfo['dirname'] = $dirname === '.' ? '' : $dirname;
2728
}
2829
$pathInfo += pathinfo($this->basename($path));
2930
$pathInfo['basename'] = $pathInfo['filename'];
31+
// phpcs:enable Magento2.Functions.DiscouragedFunction
3032
return $pathInfo + ['dirname' => ''];
3133
}
3234

0 commit comments

Comments
 (0)