We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c82f55 commit 378e37bCopy full SHA for 378e37b
drivers/github/types.go
@@ -4,6 +4,7 @@ import (
4
"time"
5
6
"github.com/OpenListTeam/OpenList/v4/internal/model"
7
+ "github.com/OpenListTeam/OpenList/v4/pkg/utils"
8
)
9
10
type Links struct {
@@ -36,6 +37,7 @@ func (o *Object) toModelObj() *model.Object {
36
37
Size: o.Size,
38
Modified: time.Unix(0, 0),
39
IsFolder: o.Type == "dir",
40
+ Path: utils.FixAndCleanPath(o.Path),
41
}
42
43
@@ -69,6 +71,7 @@ func (o *TreeObjResp) toModelObj() *model.Object {
69
71
70
72
73
IsFolder: o.Type == "tree",
74
75
76
77
0 commit comments