refactor: rename TransferTypeImage to TransferTypeBinary

This commit is contained in:
Georg Wechslberger 2022-05-23 17:21:05 +02:00
parent 190f39e8b2
commit b29e1f6c62

6
ftp.go
View File

@ -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
}