This function is used to obtain the children (subfolders and files) of a specified folder within a repository. It requires a path to the folder of interest.
Arguments
- path
A character string specifying the path to a folder in an Integral repository.
- folder_uuid
Optional character string representing the unique identifier (UUID) of the folder. This can be used as an alternative to
path
. Iffolder_uuid
is used,path
will be ignored.- url
A character string representing the base URL of the Integral repository. Defaults to
getOption("integral_url")
.- page_size
A numeric vector defining the page size or maximum number of records to be returned. The default
pageSize
parameter for the endpoint is `100`, this value can be increased by setting theintegral_page_size
inoptions()
e.g.,options("integral_page_size" = 500)
.
Value
A named list of items representing the children of the specified folder. The names of the list items are set to the captions of these children for easy reference. Each list element contains detailed information about the respective child item.
Details
The function constructs a specific URL using the folder UUID and sends an HTTP request to this URL. The request includes an encoded API key in the headers. The response from the server is processed to organize the children of the specified folder into a structured list, where each element contains details about a child item.
The default pageSize
parameter for the endpoint is `100`, this value can be increased by setting the integral_page_size
in options()
e.g., options("integral_page_size" = 500)
.
Examples
if (FALSE) { # \dontrun{
children <- get_children_of_folder(path = "R-Integral/Data/Testing")
names(children)
} # }