fork download
  1. using static System.Console;
  2. using System.IO;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. WriteLine(Directory.GetParent("/Pasta1/Pasta2"));
  7. }
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/243891/101
Success #stdin #stdout 0s 131648KB
stdin
Standard input is empty
stdout
/Pasta1