Obvously I have not yet used this class in 2.0 or my answer would have been
more complete.
However, the Docs state as follows:
"Specify the FTP command to send to the server by setting the Method
property to a value defined in the WebRequestMethods.Ftp structure. To
transmit text data, change the UseBinary property from its default value
(true) to false. For details and restrictions, see Method."
I see the following methods listed in MSDN for the WebRequestMethods.Ftp
Members:
AppendFile Represents the FTP APPE protocol method that is used to append a
file to an existing file on an FTP server.
DeleteFile Represents the FTP DELE protocol method that is used to delete a
file on an FTP server.
DownloadFile Represents the FTP RETR protocol method that is used to
download a file from an FTP server.
GetDateTimestamp
GetFileSize Represents the FTP SIZE protocol method that is used to
retrieve the size of a file on an FTP server.
ListDirectory Represents the FTP NLIST protocol method that gets a short
listing of the files on an FTP server.
ListDirectoryDetails Represents the FTP LIST protocol method that gets a
detailed listing of the files on an FTP server.
MakeDirectory Represents the FTP MKD protocol method creates a directory on
an FTP server.
PrintWorkingDirectory Represents the FTP PWD protocol method that prints
the name of the current working directory.
RemoveDirectory Represents the FTP RMD protocol method that removes a
directory.
Rename Represents the FTP RENAME protocol method that renames a directory.
UploadFile Represents the FTP STOR protocol method that uploads a file to
an FTP server.
UploadFileWithUniqueName Represents
The above do not appear to include the "CD" command. If this is correct,
then the only way to actually get to a different folder on the remote FTP
Server would be to include it in the orignal request's login path.
--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com