FEATURE: Make uploads:missing task compatible with s3 uploads

This commit is contained in:
Vinoth Kannan
2018-11-27 00:54:51 +05:30
parent cedd2118c4
commit fd272eee44
5 changed files with 81 additions and 52 deletions

View File

@ -136,9 +136,10 @@ class S3Helper
update_lifecycle("purge_tombstone", grace_period, prefix: @tombstone_prefix)
end
def list(prefix = "")
prefix = get_path_for_s3_upload(prefix)
s3_bucket.objects(prefix: prefix)
def list(prefix = "", marker = nil)
options = { prefix: get_path_for_s3_upload(prefix) }
options[:marker] = marker if marker.present?
s3_bucket.objects(options)
end
def tag_file(key, tags)