mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: S3Helper#list creates incorrect prefix.
This commit is contained in:
+5
-1
@@ -136,7 +136,11 @@ class S3Helper
|
||||
end
|
||||
|
||||
def list(prefix = "")
|
||||
s3_bucket.objects(prefix: "#{@s3_bucket_folder_path}/#{prefix}")
|
||||
if @s3_bucket_folder_path.present?
|
||||
prefix = File.join(@s3_bucket_folder_path, prefix)
|
||||
end
|
||||
|
||||
s3_bucket.objects(prefix: prefix)
|
||||
end
|
||||
|
||||
def tag_file(key, tags)
|
||||
|
||||
Reference in New Issue
Block a user