feat(dashboard): traverse file URI from file ID (#2412)

This commit is contained in:
Aaron Liu
2025-05-29 09:44:11 +08:00
parent 65095855c1
commit 51fa9f66a5
9 changed files with 67 additions and 3 deletions

View File

@@ -277,6 +277,10 @@ func (l *manager) CreateOrUpdateShare(ctx context.Context, path *fs.URI, args *C
return share, nil
}
func (m *manager) TraverseFile(ctx context.Context, fileID int) (fs.File, error) {
return m.fs.TraverseFile(ctx, fileID)
}
func getEntityDisplayName(f fs.File, e fs.Entity) string {
switch e.Type() {
case types.EntityTypeThumbnail: