[Twisted-Python] FTP LIST
![](https://secure.gravatar.com/avatar/57618f510b85298ffd52a009a1a0843f.jpg?s=120&d=mm&r=g)
<http://twistedmatrix.com/pipermail/twisted-python/2008-December/018932.html> Hi Jean-Paul, thank you for your reply. I need to implement a new IFTPShell, right? I have tried to create a new class (with a list method), which is inherited from IFTPShell class itself, but I cannot get it accepted by the realm I posted before. Greg
IFTPShell is the way you control the behavior of the FTP server. To exclude certain results from a directory listing, you would implement the `list´ method so that it has the necessary logic for performing that exclusion.
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Tue, 30 Dec 2008 20:55:11 +0000, Simply for IT <simply4it@gmail.com> wrote:
<http://twistedmatrix.com/pipermail/twisted-python/2008-December/018932.html>
Hi Jean-Paul,
thank you for your reply.
I need to implement a new IFTPShell, right?
I have tried to create a new class (with a list method), which is inherited from IFTPShell class itself, but I cannot get it accepted by the realm I posted before.
IFTPShell is an interface. You should not subclass it. See http://twistedmatrix.com/projects/core/documentation/howto/components.html for a basic introduction to interfaces. Jean-Paul
participants (2)
-
Jean-Paul Calderone
-
Simply for IT