MDTM problem with Indy 10 and IIS 5

Giganews Newsgroups
Subject: MDTM problem with Indy 10 and IIS 5
Posted by:  Michael J. Leaver (spam@mjleaver.com)
Date: Fri, 11 Feb 2005

Hi, using latest Indy 10 I've noticed that sometimes Indy is sending a
badly formatted MDTM command to set the remote files last modification
date & time. For example, on IIS 5 when you connect it has the following
features listed:

CLNT<EOL> MDTM<EOL> MDTM YYYYMMDDHHMMSS[+-TZ];filename<EOL> SIZE<EOL>
SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG<EOL> REST STREAM<EOL> XCRC
filename;start;end<EOL>211 End<EOL>

But sometimes Indy is sending the following:

MDTM 20050210045003.890 test.txt
550 /c:/20050210045003.890 test.txt: No such file or directory.

It seems to be adding on the milli-seconds part. I guess if I strip off
the milli-seconds part of the time then it won't do this?

Thanks

Replies