Search code examples
c#ftpdirectory-structureftpwebrequestdirectoryinfo

Can i get DirectoryInfo from FTP Server without FtpWebRequest


I was answering a Question about how to show a directory structure on FTP Server, therefor it was needed to use System.IO.DirectoryInfo[].

Is there any easier way to get DirectoryInfo[] from ftp Server than using FtpWebRequest and Response as in this example?

Thank you


Solution

  • Its not what you need but you can write a small Class which returns a Directoryinfo Object