chore: set default root folder in driver config

This commit is contained in:
Noah Hsu
2022-07-19 17:07:12 +08:00
parent 184b9d1e6c
commit fe94016289
4 changed files with 20 additions and 15 deletions

View File

@ -27,11 +27,11 @@ type IRootFolderId interface {
}
type RootFolderPath struct {
RootFolder string `json:"root_folder" help:"root folder path" default:"/"`
RootFolder string `json:"root_folder" required:"true" help:"root folder path"`
}
type RootFolderId struct {
RootFolder string `json:"root_folder" help:"root folder id"`
RootFolder string `json:"root_folder" required:"true" help:"root folder id"`
}
func (r RootFolderPath) GetRootFolderPath() string {

View File

@ -1,12 +1,13 @@
package driver
type Config struct {
Name string
LocalSort bool
OnlyLocal bool
OnlyProxy bool
NoCache bool
NoUpload bool
Name string
LocalSort bool
OnlyLocal bool
OnlyProxy bool
NoCache bool
NoUpload bool
DefaultRoot string
}
func (c Config) MustProxy() bool {