From b29e1f6c6292e9d9100365cee88e799d34294fc4 Mon Sep 17 00:00:00 2001 From: Georg Wechslberger Date: Mon, 23 May 2022 17:21:05 +0200 Subject: [PATCH] refactor: rename TransferTypeImage to TransferTypeBinary --- ftp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftp.go b/ftp.go index a908bdc..abe944f 100644 --- a/ftp.go +++ b/ftp.go @@ -33,8 +33,8 @@ type TransferType string // The different transfer types const ( - TransferTypeImage = "I" - TransferTypeASCII = "A" + TransferTypeBinary = "I" + TransferTypeASCII = "A" ) // Time format used by the MDTM and MFMT commands @@ -349,7 +349,7 @@ func (c *ServerConn) Login(user, password string) error { c.mdtmCanWrite = c.mdtmSupported && c.options.writingMDTM // Switch to binary mode - if err = c.Type(TransferTypeImage); err != nil { + if err = c.Type(TransferTypeBinary); err != nil { return err }