FtpWebRequest and the PWD, SIZE and MDTM methods
As you may have already noticed, the FtpResponseStream does not contain the result of PWD, SIZE and MDTM methods. You can get those from the FtpWebResponse properties
- To get the result of the PWD method (WebRequestMethods.Ftp.PrintWorkingDirectory) check the FtpWebResponse.StatusDescription property
- To get the result of the SIZE method (WebRequestMethods.Ftp.GetFileSize) check FtpWebResponse.ContentLength property
- To get the result of the MDTM method (WebRequestMethods.Ftp.GetDateTimestamp) check the FtpWebResponse.LastModifiedProperty
Comments
- Anonymous
July 25, 2008
Currently, the user is allowed to specify the following commands: APPE, DELE, RETR, SIZE LIST, NLST,