adls_list_status: List a directory.

Description Usage Arguments Value See Also Examples

Description

List a directory.

Usage

1
2
3

Arguments

adls

adls S3 object, generated using adls().

path

character, remote path, defined with respect to root-path in adls$base_url. You may find file.path() to be useful to compose the path.

Value

If empty, returns NULL. Otherwise returns tbl_df with with directory listing.

logical indicating if the path exists

See Also

adls(), adls_url() WebHDFS documentation for "List a Directory"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## 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)

## End(Not run)

ijlyttle/AzureDatalakeStore documentation built on May 5, 2019, 5:56 p.m.