Represents application folders.
Fields
ALLOWED_STATICFILE_PATHS
Array of allowed static file paths
AREAS_FOLDER
Sub folder name (in the web root folder) used for areas
CACHE_FOLDER
Sub folder name (within the Nucleus data folder) used for cache files
CONTAINERS_FOLDER
Sub folder name (in the web root folder) used for shared containers
EXTENSIONS_AUTO_INSTALL_FOLDER
Sub folder name (within the Nucleus temp folder) used for extensions that should be automatically installed
EXTENSIONS_FOLDER
Sub folder name (in the web root folder) used for extensions
LAYOUTS_FOLDER
Sub folder name (in the web root folder) used for shared layouts
LOG_FOLDER
Sub folder name (within the Nucleus data folder) used for log files
RESOURCES_FOLDER
Sub folder name (in the web root folder) used for shared resources (css, js and third-party libraries)
Section
Configuration file section.
SHARED_FOLDER
Sub folder name (in the web root folder) used for shared files
TEMP_FOLDER
Sub folder name (within the Nucleus data folder) used for temp files
Methods
EnsureExists
(String) Method
EnsureExists (String path)
Check whether the specified folder exists, and create it if it does not.
EnsureExistsStatic
(String) Method
EnsureExistsStatic (String path)
Check whether the specified folder exists, and create it if it does not.
GetAutoInstallExtensionsFolder
GetAutoInstallExtensionsFolder ()
Gets the folder which contains extension packages which are to be automatically installed.
GetCacheFolder
GetCacheFolder ()
Gets the data storage folder location for cache files.
GetCacheFolder
(Boolean) Method
GetCacheFolder (Boolean create)
Gets the data storage folder location for cache files.
Parameters
| Name |
Type |
|
create
|
Boolean
Specifies whether to check that the folder exists and create it if not.
|
GetCacheFolder
(String) Method
GetCacheFolder (System.String)
Gets the data storage folder location for cache files and appends the specified sub-folder.
GetCacheFolder
(String, Boolean) Method
GetCacheFolder (String subFolder, Boolean create)
Gets the data storage folder location for cache files and appends the specified sub-folder.
Parameters
| Name |
Type |
|
subFolder
|
String
Specifies a sub-folder of the cache folder.
|
|
create
|
Boolean
Specifies whether to check that the folder exists and create it if not.
|
GetDataFolder
GetDataFolder ()
Gets the root data storage folder location.
GetDataFolder
(String, Boolean) Method
GetDataFolder (String subFolder, Boolean create)
Gets an application data storage folder sub-folder.
Parameters
| Name |
Type |
|
subFolder
|
String
|
|
create
|
Boolean
Specifies whether to check that the folder exists and create it if not.
|
GetExtensionFolder
(String, Boolean) Method
GetExtensionFolder (String name, Boolean create)
Gets a sub-folder of the extensions folder.
Parameters
| Name |
Type |
|
name
|
String
The name of your extension folder, relative to the extensions folder root.
|
|
create
|
Boolean
Specifies whether to create the folder if it does not already exist.
|
GetExtensionFolderStatic
(String, Boolean) Method
GetExtensionFolderStatic (String name, Boolean create)
Gets a sub-folder of the extensions folder.
Parameters
| Name |
Type |
|
name
|
String
The name of your extension folder, relative to the extensions folder root.
|
|
create
|
Boolean
Specifies whether to create the folder if it does not already exist.
|
GetExtensionsFolder
GetExtensionsFolder ()
Gets the full path to the extensions folder.
GetExtensionsFolder
(Boolean) Method
GetExtensionsFolder (Boolean create)
Gets the full path to the extensions folder.
Parameters
| Name |
Type |
|
create
|
Boolean
Specifies whether to create the folder if it does not already exist.
|
GetExtensionsFolderStatic
(Boolean) Method
GetExtensionsFolderStatic (System.Boolean)
Gets the full path to the extensions folder.
GetLogFolder
GetLogFolder ()
Gets the data storage folder location for log files.
GetLogFolder
(Boolean) Method
GetLogFolder (System.Boolean)
Gets the data storage folder location for log files.
GetLogFolder
(String) Method
GetLogFolder (String subFolder)
Gets the data storage folder location for log files.
GetLogFolder
(String, Boolean) Method
GetLogFolder (System.String, System.Boolean)
Gets the data storage folder location for log files.
GetTempFolder
GetTempFolder ()
Gets the data storage folder location for temporary files.
GetTempFolder
(Boolean) Method
GetTempFolder (Boolean create)
Gets the data storage folder location for temporary files.
Parameters
| Name |
Type |
|
create
|
Boolean
Specifies whether to check that the folder exists and create it if not.
|
GetWebRootFolder
GetWebRootFolder ()
Gets the application root folder.
NormalizePath
(String) Method
NormalizePath (String path)
Return the specified path with path separator "\" characters replaced by "/" so that the path will work in both Windows and Linux.
Parse
(String) Method
Parse (String value)
Replaces tokens from any configuration file value.
ParseFolder
(String) Method
ParseFolder (String folderName)
Replaces tokens from configuration entries representing a file name, and returns an absolute path.
SetDataFolder
(String, Boolean) Method
SetDataFolder (String value, Boolean ensureExists)
Sets the data folder to the specified value.
Internal Use
This function is intended for use in a workaround to facilitate startup logging, and should not be called by anything except LoggingBuilderExtensions.ConfigureTextFileLogger.
Parameters
| Name |
Type |
|
value
|
String
Data folder path
|
|
ensureExists
|
Boolean
Specifies whether to ensure that the path exists by creating the folder if it does not already exist.
|
SetDefaultDataFolder
(Boolean) Method
SetDefaultDataFolder (Boolean ensureExists)
Sets the data folder to a default value if its current value is empty.
Parameters
| Name |
Type |
|
ensureExists
|
Boolean
Specifies whether to ensure that the path exists by creating the folder if it does not already exist.
|