jellyfin-server/MediaBrowser.UI/Configuration/UIApplicationPaths.cs
2013-02-20 20:33:05 -05:00

38 lines
1.0 KiB
C#

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