static void ToUpDir() { if (!Client.IsConnected) { Console.WriteLine("Please connect to a server first."); return; } Client.ChangeToUpDir(); }