示例#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));
     }
 }
示例#2
0
 public override bool DirectoryExists(string remotePath)
 {
     if (ExistsUsesListing)
     {
         return(DirectoryExistsFromList(remotePath));
     }
     else
     {
         return(_client.DirectoryExists(remotePath));
     }
 }