<br><br>Hi Everyone,<br><br>I just have started to study twistedmatrix in my spare time couple of weeks ago. I am satisfied with the books, but as they are very terse, and they are not really FTP related, I could not figure out how the FTP is working.<br>
<br>I would like to be able to filter/modify the LIST(ing) process. Eg after list(ing) the result should not list any .py files even if they are there.<br><br>I have tried to look after IFTPShell, but no success sofar. Here is a code snipplet from the &quot;official&quot; testcases - or even from twisted.ftp)<br>
<br>&nbsp;&nbsp;&nbsp; def requestAvatar(self, avatarId, mind, *interfaces):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for iface in interfaces:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if iface is ftp.IFTPShell:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avatar = ftp.FTPShell(filepath.<br>FilePath(self.root))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ftp.IFTPShell, avatar, getattr(avatar, &#39;logout&#39;, lambda: None)<br>
<br>Could anybody give me any advice, where to start, please?<br><br>Any help&nbsp; would be appreciated.<br><br>Greg<br>