Unverified Commit b8421dce authored by Patrick Devine's avatar Patrick Devine Committed by GitHub
Browse files

get the proper path for blobs to delete (#168)

parent 9f6e9786
......@@ -548,9 +548,13 @@ func DeleteModel(name string, fn func(api.ProgressResponse)) error {
// only delete the files which are still in the deleteMap
for k, v := range deleteMap {
if v {
err := os.Remove(k)
fp, err := GetBlobsPath(k)
if err != nil {
log.Printf("couldn't remove file '%s': %v", k, err)
log.Printf("couldn't get file path for '%s': %v", k, err)
continue
}
if err := os.Remove(fp); err != nil {
log.Printf("couldn't remove file '%s': %v", fp, err)
continue
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment