fix(fs): typo

refactor/fs
Noah Hsu 2022-06-20 19:50:59 +08:00
parent a61bb6ab1f
commit 4db25605e7
2 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@ package fs
import "errors" import "errors"
var ( 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")
) )

View File

@ -25,7 +25,7 @@ func Move(ctx context.Context, account driver.Driver, srcPath, dstPath string) e
return errors.WithMessage(err, "failed get dst account") return errors.WithMessage(err, "failed get dst account")
} }
if srcAccount.GetAccount() != dstAccount.GetAccount() { if srcAccount.GetAccount() != dstAccount.GetAccount() {
return errors.WithStack(ErrMoveBetwwenTwoAccounts) return errors.WithStack(ErrMoveBetweenTwoAccounts)
} }
return operations.Move(ctx, account, srcActualPath, dstActualPath) return operations.Move(ctx, account, srcActualPath, dstActualPath)
} }