From 2e408e40c015b34b365d0e0ef4d7a20fc02b0b80 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 4 Jun 2013 12:48:23 -0400 Subject: defer path creation when possible --- MediaBrowser.Common.Implementations/BaseApplicationPaths.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Common.Implementations/BaseApplicationPaths.cs') 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 /// /// Gets the path to the system folder /// - public string ProgramSystemPath { get { return Path.Combine(ProgramDataPath, "System"); } } + public string ProgramSystemPath { get { return Path.Combine(ProgramDataPath, "system"); } } /// /// 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); @@ -219,10 +219,6 @@ namespace MediaBrowser.Common.Implementations } } - /// - /// The _system configuration file path - /// - private string _systemConfigurationFilePath; /// /// Gets the path to the system configuration file /// @@ -231,7 +227,7 @@ namespace MediaBrowser.Common.Implementations { get { - return _systemConfigurationFilePath ?? (_systemConfigurationFilePath = Path.Combine(ConfigurationDirectoryPath, "system.xml")); + return Path.Combine(ConfigurationDirectoryPath, "system.xml"); } } -- cgit v1.2.3