get todays files

Andrew D andrew at doadesweb.co.uk
Wed Dec 10 19:00:23 CET 2008


On Dec 10, 5:55 pm, Steve Holden <st... at holdenweb.com> wrote:
> Andrew D wrote:
> > I have a script that will login to my ftp server and download all the
> > backup files, but I want it to only download the files that were
> > created today, e.g. if I ran the script today I want it to only fetch
> > files created today.
>
> > I am really not sure about how to do this, but it is quite important
> > to me, so all help is highly appreciated!
>
> IIRC there's an "ftpmirror" script in the Tools directory (if you're on
> Windows - Linux/Unix users have to download the source). I adapted it to
> several different purposes.
>
> regards
>  Steve
> --
> Steve Holden        +1 571 484 6266   +1 800 494 3119
> Holden Web LLC              http://www.holdenweb.com/

Thanks Steve,

I don't want to sound rude here, but I really want some code to add to
my script so that it will only download todays files.

Andrew



More information about the Python-list mailing list