Minor fix to ensure full index path exists
This commit is contained in:
parent
cecdfcbc69
commit
c5b8544708
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue