搜索结果修改为相对路径
This commit is contained in:
parent
ac01536de2
commit
c9989fa938
@ -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: req.Path + "/" + path,
|
||||
Path: path,
|
||||
Name: f.Name(),
|
||||
Size: f.Size(),
|
||||
ModTime: f.ModTime().UnixMilli(),
|
||||
|
Loading…
Reference in New Issue
Block a user