Check if file exists on FTP - Don't know the name of the file
问题 I receive a file on the FTP server, the name of the file is generated dynamically. I am trying to write a program to check if any file exists on the server. string userName = Dts.Variables["User::SFTPUsername"].Value.ToString(); string password = Dts.Variables["User::SFTPPassword"].Value.ToString(); **string fileName = Dts.Variables["User::FilePattern"].Value.ToString();** string ftpURL = String.Format("ftp://11.11.11/upload/{0}", fileName); WebClient request = new WebClient(); request