UIApplicationPaths.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using MediaBrowser.Common.Kernel;
  2. using System.IO;
  3. namespace MediaBrowser.UI.Configuration
  4. {
  5. /// <summary>
  6. /// Class UIApplicationPaths
  7. /// </summary>
  8. public class UIApplicationPaths : BaseApplicationPaths
  9. {
  10. /// <summary>
  11. /// The _remote image cache path
  12. /// </summary>
  13. private string _remoteImageCachePath;
  14. /// <summary>
  15. /// Gets the remote image cache path.
  16. /// </summary>
  17. /// <value>The remote image cache path.</value>
  18. public string RemoteImageCachePath
  19. {
  20. get
  21. {
  22. if (_remoteImageCachePath == null)
  23. {
  24. _remoteImageCachePath = Path.Combine(CachePath, "remote-images");
  25. if (!Directory.Exists(_remoteImageCachePath))
  26. {
  27. Directory.CreateDirectory(_remoteImageCachePath);
  28. }
  29. }
  30. return _remoteImageCachePath;
  31. }
  32. }
  33. }
  34. }