Is there a Python equivalent to Perl's File::Listing::parse_dir
Stefan Schwarzer
sschwarzer at sschwarzer.net
Thu Sep 2 04:06:50 EDT 2010
Hi John,
On 2010-08-11 20:24, John Nagle wrote:
> 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.
I saw this posting only now. I hope it's not too late to
point you to ftputil, http://ftputil.sschwarzer.net . :-)
As the name implies, it's FTP-only for now, though.
If you have any questions regarding the library, please ask.
Stefan
More information about the Python-list
mailing list