chore: set default root folder in driver config
This commit is contained in:
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user