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