Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

March 13, 2008

FTP Last-Modified Times Inconsistent between GetXmlDirListing and GetLastModifiedTimeByName

Question:
(regarding Chilkat FTP2) The lastModTime attributes derived from the GetXmlDirListing method is inconsistent with what’s returned by the GetLastModifiedTimeByName method.

Answer:
The GetXmlDirListing converts an FTP directory listing into XML. However, the GetLastModifiedTimeByName will issue an MDTM command (if supported by the FTP server) to get a more accurate time. FTP directory listings typically leave off the hours/minutes/seconds for older files. It won’t be possible to change GetXmlDirListing because it would require one MDTM round-trip command/response for each file in the directory to get the info, and if the directory is too large it would be very time consuming.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.