コード例 #1
0
        public void ReadFilesList()
        {
            FtpReaderClient ftpClient = new FtpReaderClient(testUrl, testUserName, testPassword);
            var             listFile  = ftpClient.ListFiles();

            foreach (var item in listFile)
            {
                output.WriteLine(item);
            }
        }
コード例 #2
0
 public void DownloadFile()
 {
     try
     {
         FtpReaderClient ftpClient = new FtpReaderClient(testUrl, testUserName, testPassword);
         ftpClient.Download(testDownloadFileUrl, testLocalFile);
     } catch (Exception ex)
     {
         output.WriteLine(ex.Message);
     }
 }