alist/drivers/local/meta.go

27 lines
564 B
Go
Raw Normal View History

2022-06-07 18:13:55 +08:00
package local
2022-06-09 17:11:46 +08:00
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/op"
2022-06-09 17:11:46 +08:00
)
2022-06-07 18:13:55 +08:00
type Addition struct {
2022-09-04 13:07:53 +08:00
driver.RootPath
Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"`
ShowHidden bool `json:"show_hidden" default:"true" required:"false" help:"show hidden directories and files"`
2022-06-07 18:13:55 +08:00
}
var config = driver.Config{
2022-09-01 22:13:37 +08:00
Name: "Local",
OnlyLocal: true,
LocalSort: true,
NoCache: true,
DefaultRoot: "/",
2022-06-07 18:13:55 +08:00
}
2022-06-07 22:02:41 +08:00
func init() {
op.RegisterDriver(func() driver.Driver {
return &Local{}
})
2022-06-07 22:02:41 +08:00
}