Пример #1
0
 static void Cd(string [] Input)
 {
     if (!Client.IsConnected)
     {
         Console.WriteLine("Please connect to a server first.");
         return;
     }
     if (Input != null && Input.Length > 1)
     {
         Input[0] = string.Join(" ", Input);
     }
     if (Input != null && Input.Length >= 1)
     {
         if (Input[0] == "..")
         {
             ToUpDir();
         }
         else
         {
             Client.ChangeWorkDir(Input[0]);
         }
     }
     else
     {
         Client.PrintWorkDir();
     }
 }