Re: ftp: get list of files

2006-02-09 Thread Paul Watson
Lawrence Oluyede wrote: eels [EMAIL PROTECTED] writes: With yyy = ftp.retrlines('LIST') I get this listing at stdout, but I need this information at variable yyy. How can I resolve this problem? As written in the doc retrlines has an optional parameter (a callback function) called on

ftp: get list of files

2006-02-07 Thread eels
Hello, I want to get a listing of my files at web server with ftp. I wantn 't download the files. With yyy = ftp.retrlines('LIST') I get this listing at stdout, but I need this information at variable yyy. How can I resolve this problem? Thank's for your hints, Thomas --

Re: get list of files

2006-02-07 Thread Fredrik Lundh
eels wrote: I want to get a listing of my files at web server with ftp. I wantn 't download the files. With yyy = ftp.retrlines('LIST') I get this listing at stdout, but I need this information at variable yyy. How can I resolve this problem? as mentioned in the documentation, you need to

Re: ftp: get list of files

2006-02-07 Thread Lawrence Oluyede
eels [EMAIL PROTECTED] writes: With yyy = ftp.retrlines('LIST') I get this listing at stdout, but I need this information at variable yyy. How can I resolve this problem? As written in the doc retrlines has an optional parameter (a callback function) called on each line retrieved, so you can

Re: get list of files

2006-02-07 Thread eels
Hello Fredrik, thank's for your quick help. Greetings Eels Fredrik Lundh schrieb: eels wrote: I want to get a listing of my files at web server with ftp. I wantn 't download the files. With yyy = ftp.retrlines('LIST') I get this listing at stdout, but I need this information at