def download(self, destination_path, params=None):
if params:<EOL><INDENT>CONTENT_DOWNLOAD_SCHEMA.check(params)<EOL><DEDENT>with open(destination_path, '<STR_LIT:wb>') as new_file:<EOL><INDENT>response = utils.make_call(CDN_URL, '<STR_LIT>',<EOL>handle=self.handle,<EOL>params=params,<EOL>security=self.security,<EOL>transform_url=(self.url if isinstance(self, filestack.models.Transform) else None))<EOL>if response.ok:<EOL><INDENT>for chunk in response.iter_content(<NUM_LIT>):<EOL><INDENT>if not chunk:<EOL><INDENT>break<EOL><DEDENT>new_file.write(chunk)<EOL><DEDENT><DEDENT>return response<EOL><DEDENT>
Downloads a file to the given local path and returns the size of the downloaded file if successful

*returns* [Integer]

```python
from filestack import Client

client =  Client('API_KEY', security=sec)
filelink = client.upload(filepath='/path/to/file')
# if successful, returns size of downloaded file in bytes
response = filelink.download('path/to/file')
```