[python-win32] ftp retrlines problem

Andy Wilson andywil at nortelnetworks.com
Thu May 20 05:21:34 EDT 2004


Ho Folks,
 
I am having a few head scratching issues with ftplib, I would appreciate any
advice:
 
My code is:-
 
ftp_dest = "wctfsxxx.europe.nortel.com"
ftp_user = "ccps"
ftp_pass = string.rstrip (lines[0]) # password stored in a file
ftp = FTP (ftp_dest)
ftp.login <ftp://ftp.login>  (ftp_user, ftp_pass)
ftp.cwd <ftp://ftp.cwd>  (external_dir)
ftp.retrlines('LIST' <ftp://ftp.retrlines('LIST'> )
At this point I get "Sequence index out of range: list index out of range"
The same code works in the Python intrepreter, so I know I am connected. Any
ideas?
 
Regards,
Andy Wilson

CCPS Technical Prime


________________________________________________________
Nortel Networks, Belfast Lab, Doagh Rd,
Newtownabbey, Co Antrim, BT36 6XA, United Kingdom

 

Phone...                +44 (1628) 617065 ESN 861-7065
Mobile...               +44 (7710) 875958 ESN 748-5958

Yahoo ID : glawsterok
_________________________ andywil at nortelnetworks.com
<mailto:andywil at nortelnetworks.com>  ___

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20040520/13a0546b/attachment.html


More information about the Python-win32 mailing list