fixed download url and removed debug comment.

This commit is contained in:
Yoshihiro OKUMURA 2023-12-18 16:32:24 +09:00
parent 9284346153
commit 64f64b82dc
Signed by: orrisroot
GPG Key ID: 470AA444C92904B2

View File

@ -158,7 +158,6 @@ class LsCommand(BaseCommand):
} }
if isinstance(folder, Folder): if isinstance(folder, Folder):
folder_api = FoldersApi(context.connection) folder_api = FoldersApi(context.connection)
print(folder.name)
data["metadata"] = folder_api.metadata(folder.id) data["metadata"] = folder_api.metadata(folder.id)
if context.is_recursive: if context.is_recursive:
sub_folders: list[dict[str, Any]] = [] sub_folders: list[dict[str, Any]] = []
@ -188,7 +187,7 @@ class LsCommand(BaseCommand):
# "thumbnail": file.thumbnail, # "thumbnail": file.thumbnail,
"description": file.description, "description": file.description,
"metadata": file.metadata, "metadata": file.metadata,
"download_url": f"{context.connection.url}/v2/{file.download_url}", "download_url": f"{context.connection.url}/{file.download_url}",
"created_at": file.created_at, "created_at": file.created_at,
"updated_at": file.updated_at, "updated_at": file.updated_at,
} }