diff --git a/pkg/storage/drivers/fs/fs_bucket.go b/pkg/storage/drivers/fs/fs_bucket.go index 25b1cf277..c57a9047c 100644 --- a/pkg/storage/drivers/fs/fs_bucket.go +++ b/pkg/storage/drivers/fs/fs_bucket.go @@ -192,7 +192,7 @@ func (fs *fsDriver) ListObjects(bucket string, resources drivers.BucketResources break } if name > resources.Marker { - metadata, resources, err = fs.filter(bucket, name, p.files[name], resources) + metadata, resources, err = fs.filterObjects(bucket, name, p.files[name], resources) if err != nil { return []drivers.ObjectMetadata{}, resources, iodine.New(err, nil) } diff --git a/pkg/storage/drivers/fs/fs_filter.go b/pkg/storage/drivers/fs/fs_filter.go index 1fdbdfee2..2bfd06036 100644 --- a/pkg/storage/drivers/fs/fs_filter.go +++ b/pkg/storage/drivers/fs/fs_filter.go @@ -24,7 +24,7 @@ import ( "github.com/minio/minio/pkg/storage/drivers" ) -func (fs *fsDriver) filter(bucket, name string, file os.FileInfo, resources drivers.BucketResourcesMetadata) (drivers.ObjectMetadata, drivers.BucketResourcesMetadata, error) { +func (fs *fsDriver) filterObjects(bucket, name string, file os.FileInfo, resources drivers.BucketResourcesMetadata) (drivers.ObjectMetadata, drivers.BucketResourcesMetadata, error) { var err error var metadata drivers.ObjectMetadata