mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-15 22:56:27 +08:00
feat: task manager
This commit is contained in:
@@ -7,9 +7,12 @@ import (
|
||||
"github.com/alist-org/alist/v3/internal/driver"
|
||||
"github.com/alist-org/alist/v3/internal/model"
|
||||
"github.com/alist-org/alist/v3/internal/operations"
|
||||
"github.com/alist-org/alist/v3/internal/task"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var copyTaskManager = task.NewTaskManager()
|
||||
|
||||
func CopyBetween2Accounts(ctx context.Context, srcAccount, dstAccount driver.Driver, srcPath, dstPath string) error {
|
||||
srcFile, err := operations.Get(ctx, srcAccount, srcPath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user