File.get
File.get() → self
Fetches the file headers, after which file.properties
will contain a dict with entries for name
, size
, contentType
, and md5
. Will raise an error if the file does not exist.
Returns:
self (a File)
Examples
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
# }
Last updated
Was this helpful?