File$get

File$get() self

Fetches the file headers, after which file$properties will contain a name list 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.GzFqtjBLb8bBoF9uJBzvOA")
f$get()

print(f$properties) 
# $kind
# [1] "rawFile"

# $id
# [1] "4c10-d8rqhswh8.GzFqtjBLb8bBoF9uJBzvOA"

# $uri
# [1] "/rawFiles/4c10-d8rqhswh8.GzFqtjBLb8bBoF9uJBzvOA"

# $name
# [1] "2CylinderEngine.gltf"

# $contentType
# [1] "model/gltf+json"

# $md5
# [1] "crc32c=3Kxlyg=="

# $size
# [1] 2503896

Last updated

Was this helpful?