File.download
File.download(path=os.getcwd(), *, overwrite=False, progress=True) → str
Parameters:
Returns:
Examples
f = redivis.file("4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w")
f.download() # download to current working directory
f.download("new_name.tiff") # download to current working directory, and rename to new_name.tiff
f.download("/some/path/") # downloaded as /some/path/bogota.tiff
f.download("/some/path/new_name.tiff") # downloaded as /some/path/new_name.tiff
print(f.properties)
# {
# "kind": "rawFile",
# "id": "4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w",
# "uri': '/rawFiles/4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w",
# "name": "bogota.tiff",
# "md5Hash": "6pQS54rKwQphRtJbLlHz7Q==",
# "contentType": "image/tiff",
# "size": 262674
# }Was this helpful?

