public string CreateIfNotExists(string debugOutputPath) { if(!Directory.Exists(debugOutputPath)) { return Directory.CreateDirectory(debugOutputPath).Name; } return debugOutputPath; } }