Last updated 2 days ago
Fetches the file headers, after which file.properties will contain a dict with entries for name, size, contentType, and md5Hash. Will raise an error if the file does not exist.
file.properties
name
size
contentType
md5Hash
self (a )
f = redivis.file("4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w") f.get() print(f.properties) # { # "kind": "rawFile", # "id": "4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w", # "uri': '/rawFiles/4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w", # "name": "bogota.tiff", # "md5Hash": "6pQS54rKwQphRtJbLlHz7Q==", # "contentType": "image/tiff", # "size": 262674 # }