mirror of https://github.com/Xhofe/alist
27 lines
414 B
Go
27 lines
414 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
|
|
}
|
|
|
|
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)
|
|
}
|