fakeftp I mode
This commit is contained in:
parent
5e2981624c
commit
1d47a69361
1 changed files with 3 additions and 3 deletions
|
@ -549,8 +549,8 @@ class PrintWorkingDirectoryCommandHandler(CommandHandler):
|
||||||
class SetTypeCommandHandler(CommandHandler):
|
class SetTypeCommandHandler(CommandHandler):
|
||||||
cmd = "TYPE"
|
cmd = "TYPE"
|
||||||
def process(self, handler, message):
|
def process(self, handler, message):
|
||||||
if message.parameter == "A":
|
if message.parameter == "A" or message.parameter == "I":
|
||||||
handler.log("Setting type to ASCII")
|
handler.log("Setting type to " + message.parameter)
|
||||||
handler.send( TypeSetMessage(message.parameter) )
|
handler.send( TypeSetMessage(message.parameter) )
|
||||||
else:
|
else:
|
||||||
handler.log("Unrecognized type %s" % message.parameter)
|
handler.log("Unrecognized type %s" % message.parameter)
|
||||||
|
@ -796,4 +796,4 @@ while True:
|
||||||
port += 1
|
port += 1
|
||||||
else:
|
else:
|
||||||
print "Failed to find a port"
|
print "Failed to find a port"
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue