Description Usage Arguments Value See Also Examples
Rename a File/Directory on a FileSystem
1 2 3 4 5 6 7 8 | rename_file(fs, fromPath, toPath, ...)
## Default S3 method:
rename_file(fs, fromPath, toPath, ...)
## S3 method for class 'webhdfs'
rename_file(fs, fromPath, toPath, overwrite = FALSE,
...)
|
fs |
FileSystem object |
fromPath |
a character vector that contains the path renaming from |
toPath |
a character vector that contains the path renaming to.
If it starts with |
... |
other arguments |
overwrite |
a file if |
TRUE
if successful, FALSE
otherwise
1 2 3 4 5 6 7 8 9 10 | ## Not run:
## move file /user/<username>/foo (in hdfs) to
## /user/<username>/bar/foo
rename_file(hdfs, "foo", "bar/foo")
## move file /user/<username>/foo (in hdfs) to
## /mypath/foo
rename_file(hdfs, "foo", "/mypath/foo")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.