Skip to content
This repository
Browse code

Merge pull request #137 from mdomsch/bug/88

fix sync single remote file to existing local file traceback, bug 88
  • Loading branch information...
commit f746d94568badbf86c7c0188ffec13c55392a230 2 parents 986aebb + 30cea49
Michal Ludvig mludvig authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  s3cmd
2  s3cmd
@@ -746,6 +746,8 @@ def cmd_sync_remote2local(args):
746 746 info(u"Summary: %d remote files to download, %d local files to delete, %d local files to hardlink" % (remote_count + update_count, local_count, copy_pairs_count))
747 747
748 748 def _set_local_filename(remote_list, destination_base):
  749 + if len(remote_list) == 0:
  750 + return
749 751 if not os.path.isdir(destination_base):
750 752 ## We were either given a file name (existing or not) or want STDOUT
751 753 if len(remote_list) > 1:

0 comments on commit f746d94

Please sign in to comment.
Something went wrong with that request. Please try again.