Mariya Atanasova's Blog

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

 

  1. To get the result of the PWD method (WebRequestMethods.Ftp.PrintWorkingDirectory) check the FtpWebResponse.StatusDescription property
  2. To get the result of the SIZE method (WebRequestMethods.Ftp.GetFileSize) check FtpWebResponse.ContentLength property
  3. To get the result of the MDTM method (WebRequestMethods.Ftp.GetDateTimestamp) check  the FtpWebResponse.LastModifiedProperty
Published Tuesday, November 07, 2006 12:24 AM by mariya

Comments

 

Mariya Atanasova's Blog said:

Currently, the user is allowed to specify the following commands: APPE, DELE, RETR, SIZE LIST, NLST,

July 25, 2008 8:52 PM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker