Skip to content

Commit

Permalink
object/gluster: fix gluster readDirSorted
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Jul 31, 2023
1 parent b408e0c commit 8a0c17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/object/gluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (d *gluster) readDirSorted(dirname string) ([]*mEntry, error) {
mEntries = append(mEntries, &mEntry{nil, name + dirSuffix, e, false})
} else if !e.Mode().IsRegular() {
// follow symlink
fi, err := os.Stat(filepath.Join(dirname, name))
fi, err := d.vol.Stat(filepath.Join(dirname, name))
if err != nil {
mEntries = append(mEntries, &mEntry{nil, name, e, true})
continue
Expand Down

0 comments on commit 8a0c17b

Please sign in to comment.