473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to download latest file based on timestamp through FTP

16 New Member
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 4844
patelss23
16 New Member
I am sorry...... I forgot to mention..........
I am using python 2.5 on my windows XP.......
Jul 27 '07 #2
patelss23
16 New Member
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 Recognized Expert Moderator Specialist
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: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.