alist/drivers/local/meta.go

27 lines
415 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-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 {
return &Driver{}
}
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
}