def show
      result = Boxroom::Folder::FilesAndFolders.(params: {folder_id: @folder.id, sort_field: params[:sort_field], sort_dir: params[:sort_dir]})
      if result.success?
        @files, @folders = result['files'], result['folders']
      end
    end
def show
      result = Boxroom::Folder::FilesAndFolders.(params: {folder_id: @folder.id, sort_field: params[:sort_field], sort_dir: params[:sort_dir]})
      if result.success?
        @files, @folders = result['files'], result['folders']
      end
    end
Note: @folder is set in require_existing_folder