Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Below is the code I am using

C#
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(Ftp_FilePath_dt);
request.Method = WebRequestMethods.Ftp.GetDateTimestamp;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();


I want last modified date of the folder.

my FTP is like Ftp://111.00.00.000
Ftp_FilePath_dt = ftp://111.000.00.000/ABC/IB/TW/

In FtpWebresponse I am getting error
C#
the requested uri is invalid for this ftp command


Immediate help is Appreciated!!

Thanks

What I have tried:

FtpWebRequest request = (FtpWebRequest)WebRequest.Create(Ftp_FilePath_dt);
request.Method = WebRequestMethods.Ftp.GetDateTimestamp;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
Posted
Updated 19-Jul-16 23:38pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900