Files
Umbraco-CMS/umbraco/businesslogic/IO/SystemDirectories.cs
hartvig eb9187d212 WORK IN PROGRESS, GET THE STABLE SOURCE FROM THE DOWNLOADS TAB
Fixes 16705. Still experimental. If running 4.1 beta remember to add the contents of the 4_1upgrade sql script

[TFS Changeset #63889]
2010-02-10 14:00:47 +00:00

161 lines
3.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using umbraco.BusinessLogic;
using System.Web;
using System.IO;
namespace umbraco.IO
{
//all paths has a starting but no trailing /
public class SystemDirectories
{
public static string Bin
{
get
{
return IOHelper.returnPath("umbracoBinDirectory", "~/bin");
}
}
public static string Config
{
get
{
return IOHelper.returnPath("umbracoConfigDirectory", "~/config");
}
}
public static string Css
{
get
{
return IOHelper.returnPath("umbracoCssDirectory", "~/css");
}
}
public static string Data
{
get
{
return IOHelper.returnPath("umbracoStorageDirectory", "~/data");
}
}
public static string Install
{
get
{
return IOHelper.returnPath("umbracoInstallPath", "~/install");
}
}
public static string Masterpages
{
get
{
return IOHelper.returnPath("umbracoMasterPagesPath", "~/masterpages");
}
}
public static string Media
{
get
{
return IOHelper.returnPath("umbracoMediaPath", "~/media");
}
}
public static string Python
{
get
{
return IOHelper.returnPath("umbracoPythonPath", "~/python");
}
}
public static string Scripts
{
get
{
return IOHelper.returnPath("umbracoScriptsPath", "~/scripts");
}
}
public static string Umbraco
{
get
{
return IOHelper.returnPath("umbracoPath", "~/umbraco");
}
}
public static string Umbraco_client
{
get
{
return IOHelper.returnPath("umbracoClientPath", "~/umbraco_client");
}
}
public static string Usercontrols
{
get
{
return IOHelper.returnPath("umbracoUsercontrolsPath", "~/usercontrols");
}
}
public static string Webservices
{
get
{
return IOHelper.returnPath("umbracoWebservicesPath", "~/umbraco/webservices");
}
}
public static string Xslt
{
get {
return IOHelper.returnPath("umbracoXsltPath", "~/xslt");
}
}
public static string Packages
{
get
{
//by default the packages folder should exist in the data folder
return IOHelper.returnPath("umbracoPackagesPath", Data + IOHelper.DirSepChar + "packages");
}
}
public static string Preview
{
get
{
//by default the packages folder should exist in the data folder
return IOHelper.returnPath("umbracoPreviewPath", Data + IOHelper.DirSepChar + "preview");
}
}
public static string Root
{
get
{
string appPath = HttpRuntime.AppDomainAppVirtualPath;
if (appPath == "/")
appPath = string.Empty;
return appPath;
}
}
}
}