[ftputil] "Useless" lines in directory listings
Stefan Schwarzer
sschwarzer at sschwarzer.net
Wed Nov 22 21:05:25 CET 2006
Hello,
during a bugfix, I've come to think about what kind of lines
without directory/file/link data may be included in a directory
listing from the server. ftp_stat.py already ignores lines
beginning with "total". Have you also found something in your
listings which isn't useful for stat results?
To find out more, you can append
print lines
directly _after_ the lines
# set up for loop
lines = self._host_dir(path)
in ftp_stat._Stat._real_listdir and mail the output of the print
statement.
Thank you for your answers.
Stefan
More information about the ftputil
mailing list