diff --git a/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py b/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py index 34251f612..57d30f9f7 100644 --- a/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py +++ b/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py @@ -37,7 +37,7 @@ def download_folder(self, source_path, destination_path): os.path.relpath(obj.key, source_path), ) - if obj.is_prefix(): + if obj.is_prefix() or obj.key.endswith("/"): # Create local directory os.makedirs(local_path, exist_ok=True) else: