How to List Directory Contents with FTP in C#?

后端 未结 7 752
时光取名叫无心
时光取名叫无心 2020-11-27 18:08

How to List Directory Contents with FTP in C# ?

I am using below code to List Directory Contents with FTP it is returning result in XML format ,but i want only the

7条回答
  •  广开言路
    2020-11-27 18:16

    If you want to list the name of the files that are inside de directory, you have to put (reqFTP.Proxy = null;) before you invoke (reqFTP.Method = WebRequestMethods.Ftp.ListDirectory;).

    Hope this can help you!

提交回复
热议问题