Beispiel #1
0
 public bool FolderExists(string folderPath)
 {
     using (var client = new FluentFTP.FtpClient(env.FTP_HOST, new NetworkCredential(env.FTP_USERNAME, env.FTP_PASSWORD)))
     {
         return(client.DirectoryExists(folderPath));
     }
 }
 public override bool DirectoryExists(string remotePath)
 {
     if (ExistsUsesListing)
     {
         return(DirectoryExistsFromList(remotePath));
     }
     else
     {
         return(_client.DirectoryExists(remotePath));
     }
 }