diff --git a/Core/Host.cs b/Core/Host.cs index af9f56f..cbb1ac6 100644 --- a/Core/Host.cs +++ b/Core/Host.cs @@ -847,6 +847,20 @@ namespace ScrewTurn.Wiki { return done; } + /// + /// Overrides the public directory. + /// + /// The new full path of the public directory. + /// If is null. + /// If is empty. + /// If it's too late to override the public directory. + public void OverridePublicDirectory(string fullPath) { + if(fullPath == null) throw new ArgumentNullException("fullPath"); + if(fullPath == "") throw new ArgumentException("Full Path cannot be empty", "fullPath"); + + Settings.OverridePublicDirectory(fullPath); + } + /// /// Event fired whenever an activity is performed on a User Account. /// diff --git a/PluginFramework/IHost.cs b/PluginFramework/IHost.cs index 670b402..91921f3 100644 --- a/PluginFramework/IHost.cs +++ b/PluginFramework/IHost.cs @@ -403,6 +403,15 @@ namespace ScrewTurn.Wiki.PluginFramework { /// If or are null. bool UpgradeSecurityFlagsToGroupsAcl(UserGroup administrators, UserGroup users); + /// + /// Overrides the public directory. + /// + /// The new full path of the public directory. + /// If is null. + /// If is empty. + /// If it's too late to override the public directory. + void OverridePublicDirectory(string fullPath); + /// /// Event fired whenever an activity is performed on a User Account. ///