Get full path without filename from path that includes filename

Is there anything built into System.IO.Path that gives me just the filepath?

For example, if I have a string

@"c:\webserver\public\myCompany\configs\promo.xml",

is there any BCL method that will give me

"c:\webserver\public\myCompany\configs\"?

184
задан Indy9000 22 April 2013 в 05:03
поделиться