Description Usage Arguments Value See Also Examples
Rename a file/directory.
1 | adls_rename(adls, path, destination)
|
adls |
|
path |
|
destination |
|
A logical
indicating the success of the operation.
WebHDFS documentation for "Rename a File/Directory"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
library("AzureOAuth")
# create token (assumes Azure native app)
token <- 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")
# reanme the newly-created directory
adls_rename(adls_example, "baz", "baz_new")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.