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"
|
2022-08-31 21:01:15 +08:00
|
|
|
"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
|
2022-10-23 14:53:07 +08:00
|
|
|
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",
|
2022-07-19 17:07:12 +08:00
|
|
|
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() {
|
2022-12-13 18:03:30 +08:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
|
|
|
return &Local{}
|
|
|
|
})
|
2022-06-07 22:02:41 +08:00
|
|
|
}
|