12345678910111213141516171819202122232425262728293031323334353637 |
- 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;
- }
- }
- }
- }
|