alist/drivers/local/meta.go

28 lines
489 B
Go
Raw Normal View History

2022-06-07 10:13:55 +00:00
package local
2022-06-09 09:11:46 +00:00
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/operations"
)
2022-06-07 10:13:55 +00:00
type Addition struct {
2022-06-10 12:20:45 +00:00
driver.RootFolderPath
2022-08-11 12:32:17 +00:00
Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"`
2022-06-07 10:13:55 +00:00
}
var config = driver.Config{
Name: "Local",
OnlyLocal: true,
LocalSort: true,
NoCache: true,
DefaultRoot: "/",
2022-06-07 10:13:55 +00:00
}
func New() driver.Driver {
2022-07-19 09:11:53 +00:00
return &Local{}
2022-06-07 10:13:55 +00:00
}
2022-06-07 14:02:41 +00:00
func init() {
2022-06-09 09:11:46 +00:00
operations.RegisterDriver(config, New)
2022-06-07 14:02:41 +00:00
}