<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 "official" testcases - or even from twisted.ftp)<br>
<br> def requestAvatar(self, avatarId, mind, *interfaces):<br> for iface in interfaces:<br> if iface is ftp.IFTPShell:<br> avatar = ftp.FTPShell(filepath.<br>FilePath(self.root))<br> return ftp.IFTPShell, avatar, getattr(avatar, 'logout', lambda: None)<br>
<br>Could anybody give me any advice, where to start, please?<br><br>Any help would be appreciated.<br><br>Greg<br>