Merge pull request #473 from jmorganca/mxyng/fix-manifest-path
create manifests directory
This commit is contained in:
commit
d42d88386a
1 changed files with 6 additions and 1 deletions
|
@ -114,7 +114,12 @@ func GetManifestPath() (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
return filepath.Join(home, ".ollama", "models", "manifests"), nil
|
||||
path := filepath.Join(home, ".ollama", "models", "manifests")
|
||||
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return path, nil
|
||||
}
|
||||
|
||||
func GetBlobsPath(digest string) (string, error) {
|
||||
|
|
Loading…
Reference in a new issue