Biz.Helper.PackageHelper.GetFolderName C# (CSharp) Method

GetFolderName() private static method

private static GetFolderName ( string path ) : string
path string
return string
        private static string GetFolderName(string path)
        {
            Regex r = new Regex(@"\\\w+");
            MatchCollection mc = r.Matches(path);

            return mc[mc.Count - 1].Value;
        }