fix: error saving metadata when re-indexing
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M internal/file/root.go → internal/file/root.go
@@ -80,10 +80,10 @@ return nil } -func (r *Root) RemoveAll() error { - err := os.RemoveAll(r.Name()) +func (r *Root) RemoveAll(name string) error { + err := os.RemoveAll(r.JoinPath(name)) if err != nil { - return fault.Wrap(err, fmsg.Withf("failed to remove data root %s", r.Name())) + return fault.Wrap(err, fmsg.Withf("failed to remove path %s", r.JoinPath(name))) } return nil