get_storage_properties {AzureStor} | R Documentation |
Get storage properties for an object
Description
Get storage properties for an object
Usage
get_storage_properties(object, ...)
## S3 method for class 'blob_container'
get_storage_properties(object, blob, snapshot = NULL, version = NULL, ...)
## S3 method for class 'file_share'
get_storage_properties(object, file, isdir, ...)
## S3 method for class 'adls_filesystem'
get_storage_properties(object, file, ...)
get_adls_file_acl(filesystem, file)
get_adls_file_status(filesystem, file)
Arguments
object |
A blob container, file share, or ADLS filesystem object. |
... |
For compatibility with the generic. |
blob , file |
Optionally the name of an individual blob, file or directory within a container. |
snapshot , version |
For the blob method of |
isdir |
For the file share method, whether the |
filesystem |
An ADLS filesystem. |
Value
get_storage_properties
returns a list describing the object properties. If the blob
or file
argument is present for the container methods, the properties will be for the blob/file specified. If this argument is omitted, the properties will be for the container itself.
get_adls_file_acl
returns a string giving the ADLSgen2 ACL for the file.
get_adls_file_status
returns a list of ADLSgen2 system properties for the file.
See Also
blob_container, file_share, adls_filesystem
get_storage_metadata for getting and setting user-defined properties (metadata)
list_blob_snapshots to obtain the snapshots for a blob
Examples
## Not run:
fs <- storage_container("https://mystorage.dfs.core.windows.net/myshare", key="access_key")
create_storage_dir("newdir")
storage_upload(share, "iris.csv", "newdir/iris.csv")
get_storage_properties(fs)
get_storage_properties(fs, "newdir")
get_storage_properties(fs, "newdir/iris.csv")
# these are ADLS only
get_adls_file_acl(fs, "newdir/iris.csv")
get_adls_file_status(fs, "newdir/iris.csv")
## End(Not run)