[python-win32] capturing stdout output from ftplib
David Rock
David Rock <david@rock.homelinux.com>
Wed, 12 Jun 2002 23:44:11 -0500
I would like to capture the output from ftp.dir() or ftp.retrlines( 'LIST' ),
both of which output to stdout by default. Preferably, I would like this
collected as a list of strings that I could split to get the filenames for
comparison against an existing filename.
I have found references to using a callback function as an argument, but
I don't know how this would work, either.
Thanks.
--
David Rock
david@rock.homelinux.com