Is there a Python equivalent to Perl's File::Listing::parse_dir

John Nagle nagle at animats.com
Wed Aug 11 14:24:07 EDT 2010


   Perl has a function which will take a remote directory page, in
the form that most web sites return for a file directory, and
parse it into a useful form:

	http://www.xav.com/perl/site/lib/File/Listing.html

This is especially useful for FTP sites.

Is there a Python equivalent of this?  I'm converting some
old Perl code.

Even the Python FTP module doesn't have a directory parser.

				John Nagle



More information about the Python-list mailing list