2022-10-25 15:00:23 +00:00
|
|
|
package smb
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
|
|
|
driver.RootPath
|
|
|
|
Address string `json:"address" required:"true"`
|
|
|
|
Username string `json:"username" required:"true"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
ShareName string `json:"share_name" required:"true"`
|
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
|
|
|
Name: "SMB",
|
|
|
|
LocalSort: true,
|
|
|
|
OnlyLocal: true,
|
|
|
|
DefaultRoot: ".",
|
|
|
|
NoCache: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 10:03:30 +00:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
2022-10-25 15:00:23 +00:00
|
|
|
return &SMB{}
|
|
|
|
})
|
|
|
|
}
|