cabinet: Store folders in a list in memory instead of in a temp file.