Skip to content

Commit

Permalink
Minor fix to ensure full index path exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Mindenhall committed Mar 14, 2016
1 parent cecdfcb commit c5b8544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5b8544

Please sign in to comment.