mc_rm {minioclient} | R Documentation |
Remove files or directories
Description
This function uses the mc
command to remove files or directories
at the specified target location.
Usage
mc_rm(target, recursive = FALSE, flags = "", verbose = FALSE)
Arguments
target |
Character string specifying the target file or directory path to be removed. |
recursive |
Logical indicating whether to recursively remove
directories. Default is |
flags |
Additional flags to be passed to the |
verbose |
Logical indicating whether to list files removed.
Default is |
Details
see mc("rm -h")
for details.
Value
Returns the list from processx::run()
, with components status
,
stdout
, stderr
, and timeout
; invisibly.
Examples
# Remove a file
mc_rm("path/to/file.txt")
# Remove a directory recursively
mc_rm("path/to/directory", recursive = TRUE)
[Package minioclient version 0.0.6 Index]