搜索结果修改为绝对路径

This commit is contained in:
lzh 2025-06-24 16:02:36 +08:00
parent 01a8381aec
commit 4f1d9eff64

View File

@ -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(),