From be0555cc17ce59918a1374c78af64d722f2c1836 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Wed, 15 May 2019 15:37:40 +0530 Subject: [PATCH] FIX: Add bucket folder path only if not exists --- lib/s3_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/s3_helper.rb b/lib/s3_helper.rb index 3706b24868a..6349fb9ba33 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