0
0
Fork 0

Minor fix to ensure full index path exists

This commit is contained in:
Mark Mindenhall 2016-03-13 21:44:21 -06:00
parent cecdfcbc69
commit c5b8544708
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func openIndexMeta(path string) (*indexMeta, error) {
func (i *indexMeta) Save(path string) (err error) {
indexMetaPath := indexMetaPath(path)
// ensure any necessary parent directories exist
err = os.Mkdir(path, 0700)
err = os.MkdirAll(path, 0700)
if err != nil {
if os.IsExist(err) {
return ErrorIndexPathExists