mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-07-18 17:38:07 +08:00

* fix(crypt): bug caused by link cache * perf(crypt,mega,halalcloud,quark,uc): optimize concurrent response link * chore: 删除无用代码 * ftp * 修复bug;资源释放 * 添加SyncClosers * local,sftp,smb * 重构,优化,增强 * Update internal/stream/util.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> * chore * chore * 优化,修复bug * . --------- Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
29 lines
752 B
Go
29 lines
752 B
Go
package virtual
|
|
|
|
import (
|
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootPath
|
|
NumFile int `json:"num_file" type:"number" default:"30" required:"true"`
|
|
NumFolder int `json:"num_folder" type:"number" default:"30" required:"true"`
|
|
MaxFileSize int64 `json:"max_file_size" type:"number" default:"1073741824" required:"true"`
|
|
MinFileSize int64 `json:"min_file_size" type:"number" default:"1048576" required:"true"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "Virtual",
|
|
OnlyLinkMFile: true,
|
|
LocalSort: true,
|
|
NeedMs: true,
|
|
NoLinkURL: true,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Virtual{}
|
|
})
|
|
}
|