Пример #1
0
        public static string MapPath(string bucket, string path)
        {
            if (bucket == null)
            {
                bucket = "";
            }
            var combinPath = RootPath.PathCombin(bucket).PathCombin(path);

            if (IsAbsolutePhysicalPath(combinPath))
            {
                return(combinPath);
            }

            var fullPath = HttpContext.Current.Server.MapPath(combinPath);

            return(fullPath);
        }