Skip to content

Commit 92530c7

Browse files
CopilotBornToBeRoot
andcommitted
Fix using statement and clarify path format documentation
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
1 parent 114f86c commit 92530c7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Source/NETworkManager.Settings/SettingsManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.IO;
77
using System.Linq;
8+
using System.Security;
89
using System.Text.Json;
910
using System.Text.Json.Serialization;
1011
using System.Xml.Serialization;
@@ -104,7 +105,7 @@ public static string GetSettingsFolderLocation()
104105
{
105106
Log.Error($"Policy-provided SettingsFolderLocation format is not supported: {policyPath}. Falling back to default location.", ex);
106107
}
107-
catch (System.Security.SecurityException ex)
108+
catch (SecurityException ex)
108109
{
109110
Log.Error($"Insufficient permissions to access policy-provided SettingsFolderLocation: {policyPath}. Falling back to default location.", ex);
110111
}

Website/docs/system-wide-policies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ See [Location](./settings/settings.md#location) for more details.
139139
:::warning
140140

141141
When configuring a custom settings folder location, ensure:
142-
- The path **must be an absolute path** (e.g., `C:\\Path\\To\\Folder`, not `.\\RelativePath`)
143-
- The path uses double backslashes (`\\`) in JSON format
142+
- The path **must be an absolute path** (e.g., `C:\\Path\\To\\Folder` or `C:/Path/To/Folder`, not `.\\RelativePath`)
143+
- For Windows paths, use either double backslashes (`\\`) or forward slashes (`/`) in JSON format (both `C:\\Path\\Folder` and `C:/Path/Folder` are valid)
144144
- The path does not contain invalid characters for the file system
145145
- The application has read/write permissions to the specified directory
146146
- The directory exists or the application has permissions to create it

0 commit comments

Comments
 (0)