Files
OpenList/drivers/local/meta.go

30 lines
857 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/op"
2022-06-09 17:11:46 +08:00
)
2022-06-07 18:13:55 +08:00
type Addition struct {
2022-09-04 13:07:53 +08:00
driver.RootPath
Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"`
ThumbCacheFolder string `json:"thumb_cache_folder"`
ShowHidden bool `json:"show_hidden" default:"true" required:"false" help:"show hidden directories and files"`
MkdirPerm string `json:"mkdir_perm" default:"777"`
RecycleBinPath string `json:"recycle_bin_path" default:"delete permanently" help:"path to recycle bin, delete permanently if empty or keep 'delete permanently'"`
2022-06-07 18:13:55 +08:00
}
var config = driver.Config{
2022-09-01 22:13:37 +08:00
Name: "Local",
OnlyLocal: true,
LocalSort: true,
NoCache: true,
DefaultRoot: "/",
2022-06-07 18:13:55 +08:00
}
2022-06-07 22:02:41 +08:00
func init() {
op.RegisterDriver(func() driver.Driver {
return &Local{}
})
2022-06-07 22:02:41 +08:00
}