commit
38f0c54c64
1 changed files with 2 additions and 2 deletions
|
@ -106,10 +106,10 @@ func GetBlobsPath(digest string) (string, error) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
path := filepath.Join(home, ".ollama", "models", "blobs")
|
path := filepath.Join(home, ".ollama", "models", "blobs", digest)
|
||||||
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
|
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
return filepath.Join(path, digest), nil
|
return path, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue