| parse_storage_path | R Documentation |
Splits an Azure Storage URL or Hadoop filesystem path into its constituent parts. Supports all common Azure Storage path formats:
abfss:// / abfs://Azure Data Lake Storage Gen2 (DFS endpoint), used by Spark / Hadoop.
wasbs:// / wasb://Legacy Azure Blob filesystem scheme, used by older Spark / Hadoop integrations.
https:// / http://Standard Azure Blob or DFS REST endpoint, optionally with a SAS token query string.
az:// / azure://Non-standard aliases used by some Python tools
(e.g. adlfs); parsed using the same container@account.host/path
shape as abfs://.
The format field is inferred from the path on a best-effort basis:
"delta" when the path contains _delta_log; a file extension name
("parquet", "csv", "json", "avro", "orc", "text") when the
last path segment has a recognised extension; "folder" when there is no
extension; and NA for unrecognised extensions.
parse_storage_path(path)
path |
A character string containing the Azure Storage path to parse. |
An azure_storage_path object (a named list) with the fields:
schemeURL scheme, e.g. "abfss", "wasbs", "https".
storage_accountStorage account name.
endpointStorage endpoint type: "dfs" or "blob".
endpoint_suffixHost suffix after the endpoint label, e.g.
"core.windows.net" (Azure public), "core.usgovcloudapi.net"
(US Government), "core.chinacloudapi.cn" (China), or
"storage.azure.net" (DNS-zone endpoints). Use this to distinguish
sovereign clouds from the public cloud.
containerContainer name. Called "filesystem" in ADLS Gen2 / ABFS contexts; both refer to the same underlying object.
pathPath within the container, without a leading /. Empty
string if the URL points to the container root.
formatInferred dataset or file format (see above).
queryNamed list of query parameters (e.g. a parsed SAS token),
or NULL if none.
originalThe original input string.
parse_storage_path(
"abfss://mycontainer@myaccount.dfs.core.windows.net/data/sales/2024"
)
parse_storage_path(
"https://myaccount.blob.core.windows.net/mycontainer/data/events.parquet"
)
parse_storage_path(
"wasbs://mycontainer@myaccount.blob.core.windows.net/data/delta_table"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.