public function downloadRevision(
        LibraryType $library,
        DirectoryItem $dirItem,
        FileHistoryItem $fileHistoryItem,
        string $localFilePath
    ): Response {
        $downloadUrl = $this->getFileRevisionDownloadUrl($library, $dirItem, $fileHistoryItem);

        return $this->client->request('GET', $downloadUrl, ['save_to' => $localFilePath]);
    }
public function downloadRevision(
        LibraryType $library,
        DirectoryItem $dirItem,
        FileHistoryItem $fileHistoryItem,
        string $localFilePath
    ): Response {
        $downloadUrl = $this->getFileRevisionDownloadUrl($library, $dirItem, $fileHistoryItem);

        return $this->client->request('GET', $downloadUrl, ['save_to' => $localFilePath]);
    }
public function downloadRevision ( LibraryType $ library , DirectoryItem $ dirItem , FileHistoryItem $ fileHistoryItem , string $ localFilePath ) : Response { $ downloadUrl = $ this -> getFileRevisionDownloadUrl ( $ library , $ dirItem , $ fileHistoryItem ) ; return $ this -> client -> request ( 'GET' , $ downloadUrl , [ 'save_to' => $ localFilePath ] ) ; }
Download file revision

@param LibraryType     $library         Source library object
@param DirectoryItem   $dirItem         Item instance
@param FileHistoryItem $fileHistoryItem FileHistory item instance
@param string          $localFilePath   Save file to path. Existing files will be overwritten without warning

@return Response
@throws \GuzzleHttp\Exception\GuzzleException
Download file revision