By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

Downloading all files older than 3 hours from a ftp-server.

P: n/a
I need to download all files older than 3 hours from a ftp-server.
What's the easiest way to this? I've looked into the standard ftplib,
but it seems like the only way to go is to parse the
ftp.retrlines('LIST') command and that seems to be very easy to mess
up.

any hints?

Best regards,
Thomas W

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 15 Mar 2005 00:38:20 -0800, rumours say that "Thomas W"
<th***********@gmail.com> might have written:
I need to download all files older than 3 hours from a ftp-server.
What's the easiest way to this? I've looked into the standard ftplib,
but it seems like the only way to go is to parse the
ftp.retrlines('LIST') command and that seems to be very easy to mess
up.

any hints?


google brings this up:

http://www.sschwarzer.net/python/ftputil.html

ISTR seeing a parsedate (or similar) for ftp sites by the effbot, but I am not
sure.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
Jul 18 '05 #2

P: n/a
Christos TZOTZIOY Georgiou wrote:
ISTR seeing a parsedate (or similar) for ftp sites by the effbot, but I am not
sure.


you can get bindings for

http://cr.yp.to/ftpparse.html

from

http://c0re.23.nu/c0de/ftpparsemodule/

or

http://effbot.org/downloads/#ftpparse

</F>

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.