refactor: rename TransferTypeImage to TransferTypeBinary
This commit is contained in:
parent
190f39e8b2
commit
b29e1f6c62
6
ftp.go
6
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user