mirror of https://github.com/Xhofe/alist
28 lines
489 B
Go
28 lines
489 B
Go
package local
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/operations"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootFolderPath
|
|
Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "Local",
|
|
OnlyLocal: true,
|
|
LocalSort: true,
|
|
NoCache: true,
|
|
DefaultRoot: "/",
|
|
}
|
|
|
|
func New() driver.Driver {
|
|
return &Local{}
|
|
}
|
|
|
|
func init() {
|
|
operations.RegisterDriver(config, New)
|
|
}
|