diff options
Diffstat (limited to 'MediaBrowser.UI/Configuration/UIApplicationPaths.cs')
| -rw-r--r-- | MediaBrowser.UI/Configuration/UIApplicationPaths.cs | 45 |
1 files changed, 37 insertions, 8 deletions
diff --git a/MediaBrowser.UI/Configuration/UIApplicationPaths.cs b/MediaBrowser.UI/Configuration/UIApplicationPaths.cs index 07cb54fc1..313c310d3 100644 --- a/MediaBrowser.UI/Configuration/UIApplicationPaths.cs +++ b/MediaBrowser.UI/Configuration/UIApplicationPaths.cs @@ -1,8 +1,37 @@ -using MediaBrowser.Common.Kernel;
-
-namespace MediaBrowser.UI.Configuration
-{
- public class UIApplicationPaths : BaseApplicationPaths
- {
- }
-}
+using MediaBrowser.Common.Kernel; +using System.IO; + +namespace MediaBrowser.UI.Configuration +{ + /// <summary> + /// Class UIApplicationPaths + /// </summary> + public class UIApplicationPaths : BaseApplicationPaths + { + /// <summary> + /// The _remote image cache path + /// </summary> + private string _remoteImageCachePath; + /// <summary> + /// Gets the remote image cache path. + /// </summary> + /// <value>The remote image cache path.</value> + public string RemoteImageCachePath + { + get + { + if (_remoteImageCachePath == null) + { + _remoteImageCachePath = Path.Combine(CachePath, "remote-images"); + + if (!Directory.Exists(_remoteImageCachePath)) + { + Directory.CreateDirectory(_remoteImageCachePath); + } + } + + return _remoteImageCachePath; + } + } + } +} |
