-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
public function readStream(string $path)
{
$stream = fopen('php://temp', 'w+b');
$path = $this->prefixer->prefixPath($path);
try {
fwrite($stream, $this->client->getObject($this->bucket, $path, [OssClient::OSS_FILE_DOWNLOAD => $stream]));
} catch (OssException $exception) {
fclose($stream);
throw UnableToReadFile::fromLocation($path, $exception->getMessage());
}
rewind($stream);
return $stream;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels