fix(lenovonas_share): the size of the directory (#7914)

pull/7928/head
Sakana 2025-02-01 17:32:58 +08:00 committed by GitHub
parent 779c293f04
commit 39bde328ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -47,8 +47,12 @@ func (f File) GetPath() string {
} }
func (f File) GetSize() int64 { func (f File) GetSize() int64 {
if f.IsDir() {
return 0
} else {
return f.Size return f.Size
} }
}
func (f File) GetName() string { func (f File) GetName() string {
return f.FileName return f.FileName
@ -70,10 +74,6 @@ func (f File) GetID() string {
return f.GetPath() return f.GetPath()
} }
func (f File) Thumb() string {
return ""
}
type Files struct { type Files struct {
Data struct { Data struct {
List []File `json:"list"` List []File `json:"list"`