Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
45ac07cd
"sgl-kernel/python/vscode:/vscode.git/clone" did not exist on "591c232f7c9ef959c8620567789fe9d918a58bb4"
Unverified
Commit
45ac07cd
authored
Sep 11, 2023
by
Patrick Devine
Committed by
GitHub
Sep 11, 2023
Browse files
create the blobs directory correctly (#508)
parent
7d749cc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
server/modelpath.go
server/modelpath.go
+6
-1
No files found.
server/modelpath.go
View file @
45ac07cd
...
...
@@ -133,7 +133,12 @@ func GetBlobsPath(digest string) (string, error) {
}
path
:=
filepath
.
Join
(
home
,
".ollama"
,
"models"
,
"blobs"
,
digest
)
if
err
:=
os
.
MkdirAll
(
filepath
.
Dir
(
path
),
0
o755
);
err
!=
nil
{
dirPath
:=
filepath
.
Dir
(
path
)
if
digest
==
""
{
dirPath
=
path
}
if
err
:=
os
.
MkdirAll
(
dirPath
,
0
o755
);
err
!=
nil
{
return
""
,
err
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment