GetDatetimeStamp

Hello,

I am working on building a FTP client, i am trying to use the new .net 2.0 FTP class.

When i send the request for directory listing

ftp.Method = WebRequestMethods.Ftp.ListDirectoryDetails

I get the time and date but its not the format i need, i need the MDTM format

So i checked out the

myrequest.Method = WebRequestMethods.Ftp.GetDateTimestamp

which gives me the result i need.

But the problem is i need to send two requests seperately and i have to create another webrequest then send my credentials again.

Is there a workaround? where i create one ftpwebrequest and send my credentials once and get both the directory listing which i need and the datetimestamp.

Thanks

MM

[1395 byte] By [in2minds] at [2008-1-8]

.NET Development

Site Classified