diff --git a/src/restic/backend/layout_default.go b/src/restic/backend/layout_default.go index 77cb27508..836700b33 100644 --- a/src/restic/backend/layout_default.go +++ b/src/restic/backend/layout_default.go @@ -24,10 +24,10 @@ func (l *DefaultLayout) Dirname(h restic.Handle) string { p := defaultLayoutPaths[h.Type] if h.Type == restic.DataFile && len(h.Name) > 2 { - p = l.Join(p, h.Name[:2]) + p = l.Join(p, h.Name[:2]) + "/" } - return l.Join(l.Path, p) + return l.Join(l.Path, p) + "/" } // Filename returns a path to a file, including its name.