🎇 webdav unfinished

This commit is contained in:
微凉
2021-11-28 00:12:04 +08:00
parent c39752ceb4
commit f9945a14a8
15 changed files with 6793 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package model
import (
"github.com/Xhofe/alist/conf"
"sort"
"strings"
"time"
@ -47,3 +48,19 @@ func SortFiles(files []File, account *Account) {
return false
})
}
func (f File) GetSize() uint64 {
return uint64(f.Size)
}
func (f File) GetName() string {
return f.Name
}
func (f File) ModTime() time.Time {
return *f.UpdatedAt
}
func (f File) IsDir() bool {
return f.Type == conf.FOLDER
}