use currentFolder.files instead of currentFolder.photos