Re: get todays files

2008-12-11 Thread Andrew Doades
Tim Chase wrote: I know this will sound like I am being very cheeky, but is there a way you can make this for where the ftp server is actually windows server? For Windows Server, I don't have a Windows FTP server to test with -- I've got the company Linux server, and the previous testing si

Re: get todays files

2008-12-11 Thread Tim Chase
I know this will sound like I am being very cheeky, but is there a way you can make this for where the ftp server is actually windows server? For Windows Server, I don't have a Windows FTP server to test with -- I've got the company Linux server, and the previous testing site I used (I think I

Re: get todays files

2008-12-11 Thread Andrew Doades
Tim Chase wrote: This looks very good and I have tested successfully, but is there a way I can set the today to automatically become todays date in that format? Yes...see the python datetime module[1]...particularly the strftime() call on date/datetime objects. -tkc [1] http://docs.python.o

Re: get todays files

2008-12-10 Thread Andrew Doades
Tim Chase wrote: This looks very good and I have tested successfully, but is there a way I can set the today to automatically become todays date in that format? Yes...see the python datetime module[1]...particularly the strftime() call on date/datetime objects. -tkc [1] http://docs.python.

Re: get todays files

2008-12-10 Thread Tim Chase
This looks very good and I have tested successfully, but is there a way I can set the today to automatically become todays date in that format? Yes...see the python datetime module[1]...particularly the strftime() call on date/datetime objects. -tkc [1] http://docs.python.org/library/datetim

Re: get todays files

2008-12-10 Thread Andrew D
On Dec 10, 6:55 pm, Tim Chase <[EMAIL PROTECTED]> 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.

Re: get todays files

2008-12-10 Thread Tim Chase
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. Use Python's ftp module and send the MDTM command to get back the tim

Re: get todays files

2008-12-10 Thread Andrew D
On Dec 10, 6:13 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Andrew D wrote: > > On Dec 10, 5:55 pm, Steve Holden <[EMAIL PROTECTED]> 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

Re: get todays files

2008-12-10 Thread Steve Holden
Andrew D wrote: > On Dec 10, 5:55 pm, Steve Holden <[EMAIL PROTECTED]> 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

Re: get todays files

2008-12-10 Thread Andrew D
On Dec 10, 5:55 pm, Steve Holden <[EMAIL PROTECTED]> 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 > >

Re: get todays files

2008-12-10 Thread Steve Holden
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, b

get todays files

2008-12-10 Thread Andrew D
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