cloud_prep_ls {cloudfs} | R Documentation |
Prepare ls output
Description
Under the hood all ls functions (s3, drive, local) obtain
information about folder content recursively regardless of recursive
parameter. This is needed to be able to calculate last modified time and
size for folders in case if recursive
is set to FALSE
. The content is
presented in a form of a dataframe similar to what you'd see if you run an
ls function with recursive = TRUE
and full_names = FALSE
.
This function takes such a dataframe from this point and:
Summarizes it to non-recursive output if
recursive
isFALSE
.Appends
path
to names iffull_names
isTRUE
.Writes full names to names of the
name
column regardless of thefull_names
parameter.Evaluates the
type
column.
Usage
cloud_prep_ls(data, path, recursive, full_names)
Arguments
data |
ls dataframe assembled internally by a cloud_ls_* function |
path |
path that was used in a cloud_ls_* function |
recursive |
(logical) If |
full_names |
(logical) If |
Value
Transformed data
.