diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index 251202948..371d5f71d 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -712,6 +712,7 @@ func (f *Fs) listAll(ctx context.Context, dir string, directoriesOnly bool, file continue } subPath := u.Path[len(baseURL.Path):] + subPath = strings.TrimPrefix(subPath, "/") // ignore leading / here for davrods if f.opt.Enc != encoder.EncodeZero { subPath = f.opt.Enc.ToStandardPath(subPath) }