Il giorno gio, 14/08/2008 alle 10.08 +0200, Fredrik Lundh ha scritto:
ftpparse seems broken, I found ftputil as the best solution,
thanks
Nicola
Mailing List SVR wrote:
>
>
the FTP protocol doesn't specify the format for the output from the LIST
command, so you have to use some heuristics; see e.g. the code in
>
>
or use a wrapper for Dan Bernstein's ftpparse library (requires a C
compiler):
>
>
>
is there a simple way to do this?
ftplib seems unable to distinguish between files and dir, a mimetype
check would be good,
ftplib seems unable to distinguish between files and dir, a mimetype
check would be good,
the FTP protocol doesn't specify the format for the output from the LIST
command, so you have to use some heuristics; see e.g. the code in
>
>
or use a wrapper for Dan Bernstein's ftpparse library (requires a C
compiler):
>
>
thanks
Nicola
Not sure what you mean by "mimetype"; that has nothing to do with
directories vs. files, afaik.
>
</F>
>
--
http://mail.python.org/mailman/listinfo/python-list
directories vs. files, afaik.
>
</F>
>
--
http://mail.python.org/mailman/listinfo/python-list