internal static string FixUpPhysicalDirectory(string dir)
 {
     if (dir == null)
     {
         return(null);
     }
     dir = Path.GetFullPath(dir);
     if (!StringUtil.StringEndsWith(dir, @"\"))
     {
         dir = dir + @"\";
     }
     return(dir);
 }
        /*
         * Canonicalize the directory, and makes sure it ends with a '\'
         */
        internal static string FixUpPhysicalDirectory(string dir)
        {
            if (dir == null)
            {
                return(null);
            }

            dir = Path.GetFullPath(dir);

            // Append '\' to the directory if necessary.
            if (!StringUtil.StringEndsWith(dir, @"\"))
            {
                dir = dir + @"\";
            }

            return(dir);
        }