Beispiel #1
0
        public static string PhysicalPath(string path)
        {
            string result;

            if (null == path)
            {
                result = string.Empty;
            }
            else
            {
                result = Globals.RootPath().TrimEnd(new char[]
                {
                    Path.DirectorySeparatorChar
                }) + Path.DirectorySeparatorChar.ToString() + path.TrimStart(new char[]
                {
                    Path.DirectorySeparatorChar
                });
            }
            return(result);
        }