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

This commit is contained in:
Anis Elleuch authored and GitHub committed 2021-07-09 16:20:51 -07:00
1 parent da0fd5f056
commit 9be040dd14
5 files changed
+52 -28

No files matched your search

+1 -1
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)