feat: store search file index
This commit is contained in:
@ -2,6 +2,7 @@ package model
|
||||
|
||||
import (
|
||||
"github.com/Xhofe/alist/conf"
|
||||
"github.com/Xhofe/alist/utils"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
@ -84,3 +85,7 @@ func (f File) ModTime() time.Time {
|
||||
func (f File) IsDir() bool {
|
||||
return f.Type == conf.FOLDER
|
||||
}
|
||||
|
||||
func (f File) GetType() int {
|
||||
return utils.GetFileType(utils.Ext(f.GetName()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user