mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2026-03-15 03:20:32 +00:00
fix(cloudreve): Manually set path to avoid empty path (#1933)
This commit is contained in:
@@ -73,6 +73,7 @@ func (d *Cloudreve) List(ctx context.Context, dir model.Obj, args model.ListArgs
|
||||
}
|
||||
src.Size = dprop.Size
|
||||
}
|
||||
src.Path = path.Join(dir.GetPath(), src.Name)
|
||||
return objectToObj(src, thumb), nil
|
||||
})
|
||||
}
|
||||
|
||||
@@ -59,6 +59,7 @@ func objectToObj(f Object, t model.Thumbnail) *model.ObjThumb {
|
||||
Size: int64(f.Size),
|
||||
Modified: f.Date,
|
||||
IsFolder: f.Type == "dir",
|
||||
Path: f.Path,
|
||||
},
|
||||
Thumbnail: t,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user