Skip to content
Permalink
Browse files

Merge pull request #42 from jfontan/use-orderedindex-glob

 siva: use OrderedIndex.Glob to list directories
  • Loading branch information...
jfontan committed Aug 2, 2019
2 parents 8e674b2 + 1cf2297 commit 3c94aa28aff3d189d59f6cf832e41739944a7cc6
Showing with 1 addition and 1 deletion.
  1. +1 −1 filesystem.go
@@ -451,7 +451,7 @@ func (fs *sivaFS) getIndex() (siva.OrderedIndex, error) {
func listFiles(index siva.OrderedIndex, dir string) ([]os.FileInfo, error) {
dir = addTrailingSlash(dir)

entries, err := siva.Index(index).Glob(fmt.Sprintf("%s*", dir))
entries, err := index.Glob(fmt.Sprintf("%s*", dir))
if err != nil {
return nil, err
}

0 comments on commit 3c94aa2

Please sign in to comment.
You can’t perform that action at this time.