Example #1
0
 public function getFileByName($bucketName, $fileName, $withContents = true, $rawContents = false)
 {
     $response = $this->getResponse('/file/' . $bucketName . '/' . $fileName, !$withContents);
     return $rawContents ? $response->getBody() : File::fromDownloadResponse($response, $this);
 }