diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-04 12:48:23 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-04 12:48:23 -0400 |
| commit | 2e408e40c015b34b365d0e0ef4d7a20fc02b0b80 (patch) | |
| tree | 99c8ead78374aec26ad993fb94b7b76bb908db92 /MediaBrowser.Common.Implementations/BaseApplicationPaths.cs | |
| parent | 02fedead11f738c09e503c3bdc74e2dd98e21cc8 (diff) | |
defer path creation when possible
Diffstat (limited to 'MediaBrowser.Common.Implementations/BaseApplicationPaths.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/BaseApplicationPaths.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/MediaBrowser.Common.Implementations/BaseApplicationPaths.cs b/MediaBrowser.Common.Implementations/BaseApplicationPaths.cs index 82a35fc51..f6667f236 100644 --- a/MediaBrowser.Common.Implementations/BaseApplicationPaths.cs +++ b/MediaBrowser.Common.Implementations/BaseApplicationPaths.cs @@ -45,7 +45,7 @@ namespace MediaBrowser.Common.Implementations /// <summary> /// Gets the path to the system folder /// </summary> - public string ProgramSystemPath { get { return Path.Combine(ProgramDataPath, "System"); } } + public string ProgramSystemPath { get { return Path.Combine(ProgramDataPath, "system"); } } /// <summary> /// The _data directory @@ -160,7 +160,7 @@ namespace MediaBrowser.Common.Implementations { if (_tempUpdatePath == null) { - _tempUpdatePath = Path.Combine(ProgramDataPath, "Updates"); + _tempUpdatePath = Path.Combine(ProgramDataPath, "updates"); if (!Directory.Exists(_tempUpdatePath)) { Directory.CreateDirectory(_tempUpdatePath); @@ -220,10 +220,6 @@ namespace MediaBrowser.Common.Implementations } /// <summary> - /// The _system configuration file path - /// </summary> - private string _systemConfigurationFilePath; - /// <summary> /// Gets the path to the system configuration file /// </summary> /// <value>The system configuration file path.</value> @@ -231,7 +227,7 @@ namespace MediaBrowser.Common.Implementations { get { - return _systemConfigurationFilePath ?? (_systemConfigurationFilePath = Path.Combine(ConfigurationDirectoryPath, "system.xml")); + return Path.Combine(ConfigurationDirectoryPath, "system.xml"); } } |
