Skip to content

Commit ac9dfb6

Browse files
committed
correction obj_path
1 parent dd5d998 commit ac9dfb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

irods/manager/data_object_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ def should_parallelize_transfer(
218218
if size is not None and isinstance(open_options, dict):
219219
open_options[kw.DATA_SIZE_KW] = size
220220

221-
def _download(self, obj, local_path, num_threads, updatables=(), **options):
221+
def _download(self, obj_path, local_path, num_threads, updatables=(), **options):
222222
"""Transfer the contents of a data object to a local file.
223223
224224
Called from get() when a local path is named.
225225
"""
226226
if os.path.isdir(local_path):
227-
local_file = os.path.join(local_path, irods_basename(obj))
227+
local_file = os.path.join(local_path, irods_basename(obj_path))
228228
else:
229229
local_file = local_path
230230

0 commit comments

Comments
 (0)