[Twisted-Python] understand the ftp response

Dec. 22, 2006
10:23 a.m.
Hi list, I'm using ftp client and its storeFile for send a file to the server, but I'm have some troubles to understand its response. I receive, after the end of connection (fired by the SenderProtocol), something that ( pprint.pprint(result) ): [(True, [(True, ['150 FILE: /tmp/doc100.tif (Opening new data connection).', '226 Transfer complete (FILE: /tmp/doc100.tif).'])]), (True, None), (True, 'connection done')] That isn't so readable, for me. I need only the last response (the 150 and 226), so I have to make a: result[0][1][0][1], that work, but is not so understandable. Is there other soltions? Thanks, Michele
6657
Age (days ago)
6657
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michele Petrazzo