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"
2022-08-31 21:01:15 +08:00
"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
2023-05-11 19:57:24 +08:00
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" `
2024-01-09 18:51:21 +08:00
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" ,
2022-07-19 17:07:12 +08:00
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 ( ) {
2022-12-13 18:03:30 +08:00
op . RegisterDriver ( func ( ) driver . Driver {
return & Local { }
} )
2022-06-07 22:02:41 +08:00
}