Skip to content

Commit 2186849

Browse files
committed
B2B-2033: [AWS S3] [Integration Tests]: Investigate Test Failures in ScheduledImportExport module
1 parent 013c82c commit 2186849

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/ImportExport/Model/Import.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,11 @@ public function uploadFileAndGetSource()
638638
*/
639639
protected function _removeBom($sourceFile)
640640
{
641-
$string = $this->_varDirectory->readFile($this->_varDirectory->getRelativePath($sourceFile));
641+
$driver = $this->_varDirectory->getDriver();
642+
$string = $driver->fileGetContents($this->_varDirectory->getAbsolutePath($sourceFile));
642643
if ($string !== false && substr($string, 0, 3) == pack("CCC", 0xef, 0xbb, 0xbf)) {
643644
$string = substr($string, 3);
644-
$this->_varDirectory->writeFile($this->_varDirectory->getRelativePath($sourceFile), $string);
645+
$driver->filePutContents($this->_varDirectory->getAbsolutePath($sourceFile), $string);
645646
}
646647
return $this;
647648
}

0 commit comments

Comments
 (0)