mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
fix(fs): typo
This commit is contained in:
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…
x
Reference in New Issue
Block a user