properties function

Get storage properties for an object

Get storage properties for an object

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 get_storage_properties, optional snapshot and version identifiers. These should be datetime strings, in the format "yyyy-mm-ddTHH:MM:SS.SSSSSSSZ". Ignored if blob is omitted.
  • isdir: For the file share method, whether the file argument is a file or directory. If omitted, get_storage_properties will auto-detect the type; however this can be slow, so supply this argument if possible.
  • filesystem: An ADLS filesystem.

Returns

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.

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)

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

  • Maintainer: Hong Ooi
  • License: MIT + file LICENSE
  • Last published: 2022-05-25