fakeftp I mode

This commit is contained in:
madmaurice 2015-05-07 16:46:37 +02:00
parent 5e2981624c
commit 1d47a69361

View file

@ -549,8 +549,8 @@ class PrintWorkingDirectoryCommandHandler(CommandHandler):
class SetTypeCommandHandler(CommandHandler):
cmd = "TYPE"
def process(self, handler, message):
if message.parameter == "A":
handler.log("Setting type to ASCII")
if message.parameter == "A" or message.parameter == "I":
handler.log("Setting type to " + message.parameter)
handler.send( TypeSetMessage(message.parameter) )
else:
handler.log("Unrecognized type %s" % message.parameter)
@ -796,4 +796,4 @@ while True:
port += 1
else:
print "Failed to find a port"
break
break