mirror of https://github.com/Xhofe/alist
fix(fs): typo
parent
a61bb6ab1f
commit
4db25605e7
|
@ -3,5 +3,5 @@ package fs
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
ErrMoveBetwwenTwoAccounts = errors.New("can't move files between two account, try to copy")
|
||||
ErrMoveBetweenTwoAccounts = errors.New("can't move files between two account, try to copy")
|
||||
)
|
|
@ -25,7 +25,7 @@ func Move(ctx context.Context, account driver.Driver, srcPath, dstPath string) e
|
|||
return errors.WithMessage(err, "failed get dst account")
|
||||
}
|
||||
if srcAccount.GetAccount() != dstAccount.GetAccount() {
|
||||
return errors.WithStack(ErrMoveBetwwenTwoAccounts)
|
||||
return errors.WithStack(ErrMoveBetweenTwoAccounts)
|
||||
}
|
||||
return operations.Move(ctx, account, srcActualPath, dstActualPath)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue