feat: driver manage

This commit is contained in:
Noah Hsu
2022-06-07 18:13:55 +08:00
parent 84eb978731
commit 0d93a6aa41
10 changed files with 153 additions and 11 deletions

17
drivers/local/meta.go Normal file
View File

@ -0,0 +1,17 @@
package local
import "github.com/alist-org/alist/v3/internal/driver"
type Addition struct {
RootFolder string `json:"root_folder" type:"string" desc:"root folder path" default:"/"`
}
var config = driver.Config{
Name: "Local",
OnlyLocal: true,
LocalSort: true,
}
func New() driver.Driver {
return &Driver{}
}