diff --git a/internal/fs/error.go b/internal/fs/errors.go similarity index 50% rename from internal/fs/error.go rename to internal/fs/errors.go index d37edb8b143..52015118386 100644 --- a/internal/fs/error.go +++ b/internal/fs/errors.go @@ -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") ) diff --git a/internal/fs/write.go b/internal/fs/write.go index b27c1a04af8..0f3cd4f1d1c 100644 --- a/internal/fs/write.go +++ b/internal/fs/write.go @@ -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) }