|
...
|
...
|
@@ -534,7 +534,7 @@ def cmd_object_get(args):
|
|
534
|
534
|
if remote_count > 1:
|
|
535
|
535
|
raise ParameterError("Destination must be a directory or stdout when downloading multiple sources.")
|
|
536
|
536
|
remote_list[remote_list.keys()[0]]['local_filename'] = destination_base
|
|
537
|
|
- elif os.path.isdir(deunicodise(destination_base)):
|
|
|
537
|
+ else:
|
|
538
|
538
|
if destination_base[-1] != os.path.sep:
|
|
539
|
539
|
destination_base += os.path.sep
|
|
540
|
540
|
for key in remote_list:
|
|
...
|
...
|
@@ -542,8 +542,6 @@ def cmd_object_get(args):
|
|
542
|
542
|
if os.path.sep != "/":
|
|
543
|
543
|
local_filename = os.path.sep.join(local_filename.split("/"))
|
|
544
|
544
|
remote_list[key]['local_filename'] = local_filename
|
|
545
|
|
- else:
|
|
546
|
|
- raise InternalError("WTF? Is it a dir or not? -- %s" % destination_base)
|
|
547
|
545
|
|
|
548
|
546
|
if cfg.dry_run:
|
|
549
|
547
|
for key in exclude_list:
|