Workaround for FTP servers, that does not support UTF8 option. (#120)

* Workaround for FTP servers, that does not support UTF8 option.
This commit is contained in:
Vladimir Buyanov 2018-08-08 23:16:05 +02:00 committed by Julien Laffaye
parent 2403248fa8
commit 3f6433f7ea

5
ftp.go
View File

@ -188,6 +188,11 @@ func (c *ServerConn) setUTF8() error {
return err
}
// Workaround for FTP servers, that does not support this option.
if code == StatusBadArguments {
return nil
}
// The ftpd "filezilla-server" has FEAT support for UTF8, but always returns
// "202 UTF8 mode is always enabled. No need to send this command." when
// trying to use it. That's OK