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
is FALSE
.
Appends path
to names if full_names
is TRUE
.
Writes full names to names of the name
column regardless of the
full_names
parameter.
Evaluates the type
column.
cloud_prep_ls(data, path, recursive, full_names)
Transformed data
.
ls dataframe assembled internally by a cloud_ls_* function
path that was used in a cloud_ls_* function
(logical) If TRUE
, lists contents recursively in all
nested subfolders. Default is FALSE
.
(logical) If TRUE
, folder path is appended to object
names to give a relative file path.