Skip to content

Commit 70605d0

Browse files
authored
Fix branch depth for single file download (#477)
1 parent be7c904 commit 70605d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

solvebio/cli/data.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,10 @@ def _get_relative_download_path(base_path, path_to_object, filename):
982982
return filename
983983

984984

985+
def _is_single_file(objects):
986+
return len(objects) == 1 and objects[0].get("object_type") == "file"
987+
988+
985989
def ls(args):
986990
"""
987991
Given a SolveBio remote path, list the files and folders

0 commit comments

Comments
 (0)