From 28c104197dbfcab6bc5296a7ff41c34f18c0ceef Mon Sep 17 00:00:00 2001 From: mappu Date: Fri, 3 Mar 2017 17:14:13 +1300 Subject: [PATCH] ftp: fix OPTS UTF8 ON for Filezilla Server Closes #77 --- ftp.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ftp.go b/ftp.go index b2b491e..1f53c05 100644 --- a/ftp.go +++ b/ftp.go @@ -186,6 +186,13 @@ func (c *ServerConn) setUTF8() error { return err } + // 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 + if code == StatusCommandNotImplemented { + return nil + } + if code != StatusCommandOK { return errors.New(message) }