new api function: getFolders