mc_cp {minioclient} | R Documentation |
Copy files or directories between servers
Description
Most commonly used to upload and download files between local filesystem and remote S3 store.
Usage
mc_cp(from, to = "", recursive = FALSE, flags = "", verbose = FALSE)
Arguments
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 copy directories.
Default is |
flags |
any additional flags to |
verbose |
Logical indicating whether to report files copied.
Default is |
Details
see mc("cp -h")
for details.
Value
Returns the list from processx::run()
, with components status
,
stdout
, stderr
, and timeout
; invisibly.
See Also
mc_mirror
Examples
# Copy a file
mc_cp("local/path/to/file.txt", "alias/bucket/path/file.txt")
# Copy a directory recursively
mc_cp("local/directory", "alias/bucket/path/to/directory", recursive = TRUE)
[Package minioclient version 0.0.6 Index]