mirror of https://github.com/Chocobozzz/PeerTube
Keep s3 commands simple
As s3 implementation between s3 providers can be differentpull/5914/merge
parent
eeb838faf2
commit
b203a25e1f
|
@ -145,8 +145,6 @@ function removeObjectByFullKey (fullKey: string, bucketInfo: BucketInfo) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function removePrefix (prefix: string, bucketInfo: BucketInfo) {
|
async function removePrefix (prefix: string, bucketInfo: BucketInfo) {
|
||||||
// FIXME: use bulk delete when s3ninja will support this operation
|
|
||||||
|
|
||||||
logger.debug('Removing prefix %s in bucket %s', prefix, bucketInfo.BUCKET_NAME, lTags())
|
logger.debug('Removing prefix %s in bucket %s', prefix, bucketInfo.BUCKET_NAME, lTags())
|
||||||
|
|
||||||
return applyOnPrefix({
|
return applyOnPrefix({
|
||||||
|
|
Loading…
Reference in New Issue