From 64f64b82dc96408d327f51d7adb592011cbd0a4a Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Mon, 18 Dec 2023 16:32:24 +0900 Subject: [PATCH] fixed download url and removed debug comment. --- mdrsclient/commands/ls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mdrsclient/commands/ls.py b/mdrsclient/commands/ls.py index 79f0906..86cbcf0 100644 --- a/mdrsclient/commands/ls.py +++ b/mdrsclient/commands/ls.py @@ -158,7 +158,6 @@ class LsCommand(BaseCommand): } if isinstance(folder, Folder): folder_api = FoldersApi(context.connection) - print(folder.name) data["metadata"] = folder_api.metadata(folder.id) if context.is_recursive: sub_folders: list[dict[str, Any]] = [] @@ -188,7 +187,7 @@ class LsCommand(BaseCommand): # "thumbnail": file.thumbnail, "description": file.description, "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, "updated_at": file.updated_at, }