diff --git a/b2/replica_client.go b/b2/replica_client.go index 7f048de8..6b67d623 100644 --- a/b2/replica_client.go +++ b/b2/replica_client.go @@ -110,7 +110,7 @@ func (c *ReplicaClient) DeleteGeneration(ctx context.Context, generation string) // Collect all files for the generation. var objs []*b2.Object - iter := c.BucketClient.List(ctx, b2.ListPrefix(dir+"/"), b2.ListDelimiter("")) + iter := c.BucketClient.List(ctx, b2.ListPrefix(dir+"/"), b2.ListDelimiter(""), b2.ListHidden()) for iter.Next() { objs = append(objs, iter.Object()) } @@ -336,7 +336,7 @@ func (c *ReplicaClient) DeleteAll(ctx context.Context) error { // Collect all files for the generation. var objs []*b2.Object - iter := c.BucketClient.List(ctx, b2.ListPrefix(prefix), b2.ListDelimiter("")) + iter := c.BucketClient.List(ctx, b2.ListPrefix(prefix), b2.ListDelimiter(""), b2.ListHidden()) for iter.Next() { obj := iter.Object() objs = append(objs, obj)