refactor: rename TransferTypeImage to TransferTypeBinary
This commit is contained in:
parent
190f39e8b2
commit
b29e1f6c62
4
ftp.go
4
ftp.go
@ -33,7 +33,7 @@ type TransferType string
|
|||||||
|
|
||||||
// The different transfer types
|
// The different transfer types
|
||||||
const (
|
const (
|
||||||
TransferTypeImage = "I"
|
TransferTypeBinary = "I"
|
||||||
TransferTypeASCII = "A"
|
TransferTypeASCII = "A"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user