2022-06-07 10:13:55 +00:00
package local
2022-06-09 09:11:46 +00:00
import (
"github.com/alist-org/alist/v3/internal/driver"
2022-08-31 13:01:15 +00:00
"github.com/alist-org/alist/v3/internal/op"
2022-06-09 09:11:46 +00:00
)
2022-06-07 10:13:55 +00:00
type Addition struct {
2022-09-04 05:07:53 +00:00
driver . RootPath
2023-05-11 11:57:24 +00:00
Thumbnail bool ` json:"thumbnail" required:"true" help:"enable thumbnail" `
ThumbCacheFolder string ` json:"thumb_cache_folder" `
2024-09-03 12:03:30 +00:00
ThumbConcurrency string ` json:"thumb_concurrency" default:"16" required:"false" help:"Number of concurrent thumbnail generation goroutines. This controls how many thumbnails can be generated in parallel." `
2023-05-11 11:57:24 +00:00
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 10:51:21 +00: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 10:13:55 +00:00
}
var config = driver . Config {
2022-09-01 14:13:37 +00:00
Name : "Local" ,
2022-07-19 09:07:12 +00:00
OnlyLocal : true ,
LocalSort : true ,
NoCache : true ,
DefaultRoot : "/" ,
2022-06-07 10:13:55 +00:00
}
2022-06-07 14:02:41 +00:00
func init ( ) {
2022-12-13 10:03:30 +00:00
op . RegisterDriver ( func ( ) driver . Driver {
return & Local { }
} )
2022-06-07 14:02:41 +00:00
}