mirror of
https://github.com/minio/minio.git
synced 2025-12-08 00:32:28 -05:00
Add option in readDir to enable symlink following of dirs (#12668)
This commit is contained in:
@@ -534,7 +534,7 @@ func (fs *FSObjects) ListBuckets(ctx context.Context) ([]BucketInfo, error) {
|
||||
atomic.AddInt64(&fs.activeIOCount, -1)
|
||||
}()
|
||||
|
||||
entries, err := readDir(fs.fsPath)
|
||||
entries, err := readDirWithOpts(fs.fsPath, readDirOpts{count: -1, followDirSymlink: true})
|
||||
if err != nil {
|
||||
logger.LogIf(ctx, errDiskNotFound)
|
||||
return nil, toObjectErr(errDiskNotFound)
|
||||
|
||||
Reference in New Issue
Block a user