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 00090ea commit f47d2c8Copy full SHA for f47d2c8
app/code/Magento/RemoteStorage/Plugin/Zip.php
@@ -140,7 +140,7 @@ private function copyFileToTmp(string $filePath): string
140
// phpcs:ignore Magento2.Functions.DiscouragedFunction
141
$tmpPath = $this->getTmpPath($filePath);
142
$content = $this->remoteDirectoryWrite->getDriver()->fileGetContents($filePath);
143
- $filePath = $this->tmpDirectoryWrite->getDriver()->filePutContents($tmpPath, $content)
+ $filePath = $this->tmpDirectoryWrite->getDriver()->filePutContents($tmpPath, $content) >= 0
144
? $tmpPath
145
: $filePath;
146
}
0 commit comments