modified getRootFolders to not retrieve deleted folders