File
class File
Constructors
Examples
loadNamespace("redivis")
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
# [1] "rawFile"
# $id
# [1] "4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w"
# $uri
# [1] "/rawFiles/4c10-d8rqhswh8.zz7AB9NJB2ctNpDGKbRD7w"
# $name
# [1] "bogota.tiff"
# $contentType
# [1] "image/tiff"
# $md5
# [1] "3Kxlyg=="
# $size
# [1] 253896Fields
Methods
Was this helpful?

