File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/OfflineShipping/Model/ResourceModel/Carrier Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -321,10 +321,10 @@ public function getConditionName(\Magento\Framework\DataObject $object)
321
321
private function getCsvFile ($ filePath )
322
322
{
323
323
$ pathInfo = pathinfo ($ filePath );
324
- $ dirName = isset ( $ pathInfo ['dirname ' ]) ? $ pathInfo [ ' dirname ' ] : '' ;
325
- $ fileName = isset ( $ pathInfo ['basename ' ]) ? $ pathInfo [ ' basename ' ] : '' ;
324
+ $ dirName = $ pathInfo ['dirname ' ] ?? '' ;
325
+ $ fileName = $ pathInfo ['basename ' ] ?? '' ;
326
326
327
- $ directoryRead = $ this ->filesystem ->getDirectoryReadByPath ($ dirName );
327
+ $ directoryRead = $ this ->filesystem ->getDirectoryReadByPath ($ dirName, Filesystem \DriverPool:: FILE );
328
328
329
329
return $ directoryRead ->openFile ($ fileName );
330
330
}
You can’t perform that action at this time.
0 commit comments