feat: driver additional items parse

This commit is contained in:
Noah Hsu
2022-06-08 16:20:58 +08:00
parent 677047c80b
commit ae755db2d2
6 changed files with 97 additions and 6 deletions

View File

@ -37,8 +37,8 @@ func (d *Driver) Drop(ctx context.Context) error {
return nil
}
func (d *Driver) GetAccount() model.Account {
return d.Account
func (d *Driver) GetAddition() driver.Additional {
return d.Addition
}
func (d *Driver) File(ctx context.Context, path string) (driver.FileInfo, error) {

View File

@ -3,7 +3,7 @@ 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:"/"`
RootFolder string `json:"root_folder" type:"string" help:"root folder path" default:"/"`
}
var config = driver.Config{