Learn R Programming

minioclient (version 0.0.6)

mc_ls: List files and directories using mc command

Description

This function uses the mc command to list files and directories at the specified target location.

Usage

mc_ls(target, recursive = FALSE, details = FALSE)

Value

a vector of file or directory names ("keys" in minio parlance) or, if details is TRUE, a data.frame with the directory listing information

Arguments

target

character vector specifying the target directory path(s).

recursive

Logical indicating whether to recursively list directories. Default is FALSE.

details

logical, by default FALSE; if TRUE a data frame with details for the directory listing is returned.

Examples

Run this code
if (FALSE) { # interactive()

# list all buckets on play server
mc_ls("play/")
mc_ls("play", details = TRUE)
}

Run the code above in your browser using DataLab