diff --git a/service/files.go b/service/files.go index 2b13ef9..c7e8902 100644 --- a/service/files.go +++ b/service/files.go @@ -123,7 +123,7 @@ func (f *FilesProvider) Search(ctx context.Context, req *filesApi.SearchReq) (*f err := search.Search(fs, req.Path, req.Query, rules.EmptyChecker, func(path string, f os.FileInfo) error { result.Items = append(result.Items, &filesApi.SearchResp_Nested{ IsDir: f.IsDir(), - Path: path, + Path: req.Path + path, Name: f.Name(), Size: f.Size(), ModTime: f.ModTime().UnixMilli(),