mc_mv | R Documentation |
move or rename files or directories between servers
mc_mv(from, to, recursive = FALSE, flags = "", verbose = FALSE)
from |
Character string specifying the source file or directory path. Can accept a vector of file paths as well. |
to |
Character string specifying the destination path. |
recursive |
Logical indicating whether to recursively move directories.
Default is |
flags |
any additional flags to |
verbose |
Logical indicating whether to report files copied.
Default is |
see mc("mv -h")
for details.
Returns the list from processx::run()
, with components status
,
stdout
, stderr
, and timeout
; invisibly.
mc_cp
# move a file
mc_mv("local/path/to/file.txt", "alias/bucket/path/file.txt")
# move a directory recursively
mc_mv("local/directory", "alias/bucket/path/to/directory", recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.