Esempio n. 1
0
        public string GenerateVirtualPath(FileType type, ModuleResources module)
        {
            string path = Path.Combine("upload", type.ToString());

            path = Path.Combine(path, module.ToString());
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            return(path);
        }
Esempio n. 2
0
        public string GeneratePhysicalPath(string hostingEnvironment, FileType type, ModuleResources module)
        {
            string path = Path.Combine(Path.Combine(hostingEnvironment, "upload"), type.ToString());

            path = Path.Combine(path, module.ToString());

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            return(path);
        }