good morning!!!!

Skip to content
Snippets Groups Projects
Commit cba28d75 authored by a's avatar a
Browse files

Update weed.go

parent 1d3c59ee
Branches
Tags v1.8.5
No related merge requests found
Pipeline #3746 passed
......@@ -65,15 +65,14 @@ func (O *FS) Open(name string) (filing.HashedFile, error) {
path: O.prefix + "/" + strings.Trim(name, "/"),
}
meta, err := O.c.Meta(out.path + "?metadata=true")
if err != nil {
return out, err
}
if err == nil {
if fl, ok := meta.Sys().(*api_weed.WeedFileMeta); ok {
out.hash, err = strconv.ParseUint(fl.Extended.Meow64, 10, 64)
if err != nil {
return out, err
}
}
}
return out, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment