Add option in readDir to enable symlink following of dirs (#12668)

This commit is contained in:
Anis Elleuch
2021-07-10 00:20:51 +01:00
committed by GitHub
parent da0fd5f056
commit 9be040dd14
5 changed files with 52 additions and 28 deletions

View File

@@ -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)