mirror of
https://github.com/AlistGo/alist.git
synced 2025-11-25 03:15:10 +08:00
fix(lenovonas_share): the size of the directory (#7914)
This commit is contained in:
@@ -47,7 +47,11 @@ func (f File) GetPath() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f File) GetSize() int64 {
|
func (f File) GetSize() int64 {
|
||||||
return f.Size
|
if f.IsDir() {
|
||||||
|
return 0
|
||||||
|
} else {
|
||||||
|
return f.Size
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f File) GetName() string {
|
func (f File) GetName() string {
|
||||||
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user