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
OpenDAS
ollama
Commits
38f0c54c
"src/vscode:/vscode.git/clone" did not exist on "b30aefb6d3297939817356b0ab5fee8bd8e2a025"
Unverified
Commit
38f0c54c
authored
Jul 18, 2023
by
Michael Yang
Committed by
GitHub
Jul 18, 2023
Browse files
Merge pull request #99 from jmorganca/mkdir-blobs
fix mkdir blob path
parents
885f67a4
f20426a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/modelpath.go
server/modelpath.go
+2
-2
No files found.
server/modelpath.go
View file @
38f0c54c
...
@@ -106,10 +106,10 @@ func GetBlobsPath(digest string) (string, error) {
...
@@ -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
),
0
o755
);
err
!=
nil
{
if
err
:=
os
.
MkdirAll
(
filepath
.
Dir
(
path
),
0
o755
);
err
!=
nil
{
return
""
,
err
return
""
,
err
}
}
return
filepath
.
Join
(
path
,
digest
)
,
nil
return
path
,
nil
}
}
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