Learn R Programming

Rlabkey (version 2.1.121)

lsFolders: List the available folder paths

Description

Lists the available folder paths relative to the current folder path for a Labkey session

Usage

lsFolders(session)

Arguments

session
the session key returned from getSession

Value

  • A character array containing the available folder paths, relative to the project root. These values can be set on a session usiig curFolder<-

Details

Lists the available folder paths relative to the current folder path for a Labkey session

References

https://www.labkey.org/wiki/home/Documentation/page.view?name=projects

See Also

getSession, lsProjects, lsSchemas

Examples

Run this code
##get a list if projects and folders
# library(Rlabkey)

lsProjects(baseUrl="http://localhost:8080/labkey")  # returns "/apisamples", "/home", ...

lks<- getSession(baseUrl="http://localhost:8080/labkey", folderPath="/apisamples")

lsFolders(lks) #returns values "/apisamples" , "/apisamples/sub1" ,"/apisamples/sub1/child" ,"/apisamples/sub2"

Run the code above in your browser using DataLab