Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/local/meta.go
1986 views
1
package local
2
3
import (
4
"github.com/alist-org/alist/v3/internal/driver"
5
"github.com/alist-org/alist/v3/internal/op"
6
)
7
8
type Addition struct {
9
driver.RootPath
10
Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"`
11
ThumbCacheFolder string `json:"thumb_cache_folder"`
12
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."`
13
VideoThumbPos string `json:"video_thumb_pos" default:"20%" required:"false" help:"The position of the video thumbnail. If the value is a number (integer ot floating point), it represents the time in seconds. If the value ends with '%', it represents the percentage of the video duration."`
14
ShowHidden bool `json:"show_hidden" default:"true" required:"false" help:"show hidden directories and files"`
15
MkdirPerm string `json:"mkdir_perm" default:"777"`
16
RecycleBinPath string `json:"recycle_bin_path" default:"delete permanently" help:"path to recycle bin, delete permanently if empty or keep 'delete permanently'"`
17
}
18
19
var config = driver.Config{
20
Name: "Local",
21
OnlyLocal: true,
22
LocalSort: true,
23
NoCache: true,
24
DefaultRoot: "/",
25
}
26
27
func init() {
28
op.RegisterDriver(func() driver.Driver {
29
return &Local{}
30
})
31
}
32
33