Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.4k views
in .NET FTP by
Hi:
string[] files = ftp.Dir(".",true);
Now, the files[i] each has the file/folder information , which is typically
as follows:
"12-21-04 04:17PM <DIR> TestDir"

I want to know whether the date time which is see in this fileinfo string, is the file/directory creation datetime or the modified datetime.

plz help me,
Srinivas Varukala.

1 Answer

0 votes
by
Its the modified datetime, not the creation datetime.



And its translated to be what the date should be on your computer....

That is to say.. if its 8:03PM on your server.. and you are connecting to an FTP server in a region where its 10:03PM.. the ModTime will be 8:03PM.


If you want 10:03PM, then use:

ftp = new EnterpriseDT.Net.Ftp.FTPClient(host);

DateTime ServerDT = ftp.DirDetails("yourFile.txt")[0].LastModified;

Categories

...