Skip to content

Commit

Permalink
use filepath.Join instead, safer and cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
calvernaz committed Apr 29, 2018
1 parent e8da032 commit 285ec7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import (
"encoding/json"
"io/ioutil"
"os"

"path/filepath"

"github.com/blevesearch/bleve/index/upsidedown"
)

Expand Down Expand Up @@ -92,5 +93,5 @@ func (i *indexMeta) Save(path string) (err error) {
}

func indexMetaPath(path string) string {
return path + string(os.PathSeparator) + metaFilename
return filepath.Join(path, metaFilename)
}

0 comments on commit 285ec7a

Please sign in to comment.