alist/drivers/local/meta.go

26 lines
388 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/operations"
)
2022-06-07 18:13:55 +08:00
type Addition struct {
2022-06-10 20:20:45 +08:00
driver.RootFolderPath
2022-06-07 18:13:55 +08:00
}
var config = driver.Config{
Name: "Local",
OnlyLocal: true,
LocalSort: true,
NoCache: true,
2022-06-07 18:13:55 +08:00
}
func New() driver.Driver {
return &Driver{}
}
2022-06-07 22:02:41 +08:00
func init() {
2022-06-09 17:11:46 +08:00
operations.RegisterDriver(config, New)
2022-06-07 22:02:41 +08:00
}