Ejemplo n.º 1
0
 public void changePermissions(string Path, string Permissions, string HostName, string UserName, string Password)
 {
     FluentFTP.FtpClient client = new FluentFTP.FtpClient(HostName);
     client.Credentials = new NetworkCredential(UserName, Password);
     client.Connect();
     client.Chmod(Path, Convert.ToInt32(Permissions));
     client.Disconnect();
 }
Ejemplo n.º 2
0
 public void runFluent(int command)
 {
     //0 = change permissions
     if (command == 0)
     {
         try
         {
             FluentFTP.FtpClient client = new FluentFTP.FtpClient(this.connection.ServerName);
             client.Credentials = new System.Net.NetworkCredential(this.connection.UserName, this.connection.PassWord);
             client.Connect();
             client.Chmod(this.path, this.permission);
             client.Disconnect();
         }
         catch (Exception e)
         {
             throw e;
         }
     }
 }