Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.3k views
in .NET FTP by
Hey Guys,
New year and a new problem. Actually, I'm guessing this is likely handled already and I just can't seem to find where to effect it. We have a process that checks the date of a specific file on a FTP server and then downloads it if the date is newer than yesterday. When I run the code, the edtFTP library is returning Dec 31, 2007, even though the actual mod date is Dec 31, 2006. When I opened a command prompt and FTPed to the file that way, I noticed that the DIR command was spitting out the UNIX format output. Most of the file modify dates were showing up with out a date. Some files show "Dec 8 22:01" others show "Jun 27 2006". Is there some way to force the edtFTP library to return the full date/time value? Or is this some kind of server setting?

Thanks,
-Rick

3 Answers

0 votes
by
To clarify, the FTP server is a Unix machine.

-Rick
0 votes
by
Heya, here's what I found out. Solaris FTP spits out the DIR and LS -al lists with a modification date that is either the Month, Date, Time for dates in the last 6 months, or Month, Date, Year for dates older than 6 months ago.

I don't have time right now to dig into the code of the edtFTP library, but I am assuming that when it hits those dates with out a year specified, it is defaulting to the current year.

-Rick
0 votes
by (162k points)
Yes, that's right. We probably need a flag to allow this to be customized. Any ideas, please post.

Heya, here's what I found out. Solaris FTP spits out the DIR and LS -al lists with a modification date that is either the Month, Date, Time for dates in the last 6 months, or Month, Date, Year for dates older than 6 months ago.

I don't have time right now to dig into the code of the edtFTP library, but I am assuming that when it hits those dates with out a year specified, it is defaulting to the current year.

-Rick

Categories

...