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 // The different transfer types
const ( const (
TransferTypeImage = "I" TransferTypeBinary = "I"
TransferTypeASCII = "A" TransferTypeASCII = "A"
) )
// Time format used by the MDTM and MFMT commands // 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 c.mdtmCanWrite = c.mdtmSupported && c.options.writingMDTM
// Switch to binary mode // Switch to binary mode
if err = c.Type(TransferTypeImage); err != nil { if err = c.Type(TransferTypeBinary); err != nil {
return err return err
} }