473,226 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

How to download latest file based on timestamp through FTP

Hello All,

I want to download latest file based on its timestamp from one FTP server.
So can you please tell me is there any way to find the timestamp of files
weather they are on local machine or remote server ?

I appreciate your help.

Regards,
sanket
Jul 27 '07 #1
3 4824
I am sorry...... I forgot to mention..........
I am using python 2.5 on my windows XP.......
Jul 27 '07 #2
I am sorry...... I forgot to mention..........
I am using python 2.5 on my windows XP.......
I found one library called ftblib. It did my work. It has got one functions which checks whether the remote file is newer than the local copy or not?
Feb 24 '08 #3
bvdet
2,851 Expert Mod 2GB
I found one library called ftblib. It did my work. It has got one functions which checks whether the remote file is newer than the local copy or not?
An FTP instance (module ftplib) has methods to retrieve a directory listing. From that listing you may be able to parse the time stamp. In the documentation, I did not see a direct way to retrieve a time stamp directly like os.path.getmtime(file_name).
Feb 24 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Adam Monsen | last post by:
I kindly request a code review. If this is not an appropriate place for my request, where might be? Specific questions are in the QUESTIONS section of the code. ...
5
by: Tim_Mac | last post by:
hi, i read that by adding the following code to by aspx pages, it would not store temporary internet files: Response.Cache.SetCacheability(HttpCacheability.NoCache); it didn't actually work...
4
by: Mark Harrison | last post by:
So, I'm recording the timestamp from some unix files. Any opinions as to whether it's best to use a "bigint" (which matches the file system data) or a "timestamp" (which might be easier to...
2
by: Don | last post by:
Is it possible to configure an application to use CodeBase and Redirection (Config file) or any other means, to load the latest version of an Assembly from a specified URL. Using Codebase i need...
1
by: acdevteam | last post by:
Hi All, I need some help with a query. Here is the structure for the table: ID, sDate, sComment, sRole Possible values in the table: 0101, 11/6/2006, Comment123, Role1 0101, 11/6/2006,...
5
by: brett | last post by:
I read in text files based on the page a user has reqeusted. The files are not larger than 10k. Sometimes I may read in two files for one page but the total read doesn't exceed 15k. However, I'm...
12
by: devospice | last post by:
Hi, I'm trying to create a download counter for individual files on a web site and I'm not sure how to do this. Right now I'm using Webalizer to just read the log files and see how many times...
2
by: starfi3ld | last post by:
I got a few errors with this script Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/starfi3ld/domains/starfi3ld.com/public_html/newreleases.php on line...
2
by: aloke.sarnobat | last post by:
Hello, I am new to this forum, so your help would be most appreciated. I am trying to create a javascript where, on clicking a button, I will be able to download the latest log file. But the...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.