[Zope-Checkins] CVS: Zope/lib/python/ZServer - FTPServer.py:1.29
Fred L. Drake, Jr.
fred at zope.com
Wed Dec 17 16:01:50 EST 2003
Update of /cvs-repository/Zope/lib/python/ZServer
In directory cvs.zope.org:/tmp/cvs-serv10596
Modified Files:
FTPServer.py
Log Message:
implement the RFC 2389 "FEAT" command
=== Zope/lib/python/ZServer/FTPServer.py 1.28 => 1.29 ===
--- Zope/lib/python/ZServer/FTPServer.py:1.28 Fri Sep 26 12:13:59 2003
+++ Zope/lib/python/ZServer/FTPServer.py Wed Dec 17 16:01:49 2003
@@ -203,7 +203,7 @@
def cmd_cwd (self, line):
'change working directory'
response=make_response(self, self.cwd_completion,
- self._join_paths(self.path,line[1]))
+ self._join_paths(self.path,line[1]))
request=FTPRequest(line[1],'CWD',self,response)
handle(self.module,request,response)
@@ -507,6 +507,13 @@
def cmd_appe(self, line):
self.respond('502 Command not implemented.')
+
+ def cmd_feat(self, line):
+ # specified in RFC 2389; gives a list of supported extensions
+ self.respond('211-Extensions supported:\r\n'
+ ' MDTM\r\n'
+ ' SIZE\r\n'
+ '211 END')
More information about the Zope-Checkins
mailing list