From 1a283f522d978d2716dd1b3bd8d8208e9ea8cf39 Mon Sep 17 00:00:00 2001 From: grosser Date: Tue, 24 Sep 2013 11:08:17 -0700 Subject: [PATCH] fix invalid boolean conversion --- lib/s3ranger/sync.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/s3ranger/sync.rb b/lib/s3ranger/sync.rb index 74c4e1d..f6dbc8d 100644 --- a/lib/s3ranger/sync.rb +++ b/lib/s3ranger/sync.rb @@ -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 }