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); }
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); }