FIX: Add bucket folder path only if not exists

follow-up
#1

FIX: Add bucket folder path only if not exists

diff --git a/lib/s3_helper.rb b/lib/s3_helper.rb
index 3706b24..6349fb9 100644
--- a/lib/s3_helper.rb
+++ b/lib/s3_helper.rb
@@ -238,7 +238,7 @@ class S3Helper
   end
 
   def get_path_for_s3_upload(path)
-    path = File.join(@s3_bucket_folder_path, path) if @s3_bucket_folder_path
+    path = File.join(@s3_bucket_folder_path, path) if @s3_bucket_folder_path && path !~ /^#{@s3_bucket_folder_path}\//
     path
   end

GitHub sha: be0555cc

#2

We should definitely have a test here.

Follow Up #3