package local

import (
	"github.com/alist-org/alist/v3/internal/driver"
	"github.com/alist-org/alist/v3/internal/operations"
)

type Addition struct {
	driver.RootFolderPath
	Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"`
}

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)
}