List a directory.
adls_list_status(adls, path = NULL)
| adls |
|
|---|---|
| path |
|
If empty, returns NULL. Otherwise returns tbl_df with with directory listing.
adls(), adls_url()
WebHDFS documentation for "List a Directory"
not_run({ # create token (assumes Azure native app) token <- AzureOAuth::oauth_token_azure( tenant_id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", application_id = "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj", name = "foo" ) # create adls object with base-URL and token adls_example <- adls( base_url = adls_url("bar"), token = token ) # create a directory adls_mkdirs(adls_example, "baz") # list the root directory adls_liststatus(adls_example) })