| all_files.append( | all_files.append( | ||||
| { | { | ||||
| "id": datasource_info.get("id", ""), | "id": datasource_info.get("id", ""), | ||||
| "name": datasource_info.get("name", "untitled"), | |||||
| "bucket": datasource_info.get("bucket", None), | "bucket": datasource_info.get("bucket", None), | ||||
| } | } | ||||
| ) | ) | ||||
| provider_type=datasource_runtime.datasource_provider_type(), | provider_type=datasource_runtime.datasource_provider_type(), | ||||
| ) | ) | ||||
| is_truncated = False | is_truncated = False | ||||
| last_file_key = None | |||||
| for result in result_generator: | for result in result_generator: | ||||
| for files in result.result: | for files in result.result: | ||||
| for file in files.files: | for file in files.files: | ||||
| all_files.append( | all_files.append( | ||||
| { | { | ||||
| "id": file.id, | "id": file.id, | ||||
| "name": file.name, | |||||
| "bucket": bucket, | "bucket": bucket, | ||||
| } | } | ||||
| ) | ) |