Skip to content

Commit

Permalink
Merge pull request clarete#9 from grosser/download
Browse files Browse the repository at this point in the history
fix invalid boolean conversion
  • Loading branch information
clarete committed Sep 24, 2013
2 parents 167c0e7 + 1a283f5 commit 8f263fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/s3ranger/sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def self.process_destination source, destination

def read_tree_remote location
dir = location.path
dir += '/' if not dir.empty? or dir.end_with?('/')
dir += '/' if not dir.empty? and not dir.end_with?('/')
@args.s3.buckets[location.bucket].objects.with_prefix(dir || "").to_a.collect {|obj|
Node.new location.path, obj.key, obj.content_length
}
Expand Down

0 comments on commit 8f263fd

Please sign in to comment.