我发现一个代码非常有用,但下面的代码从一个FTP服务器返回目录和文件的名称,我只需要获取文件的名称。 ftpRequest = (FtpWebRequest) FtpWebRequest.Create(host + "/" + directory);
/* Log in to the FTP Server with the User Name and Password Provided */
我想要的FTP文件夹的内容下载到使用在计算器上一本例中的本地文件夹: Downloading a list of files from ftp to local folder using c#? 我的代码此刻是: public void DownloadFilesFromFTP(string localFilesPath, string remoteFTPPath)
{
remoteF