2013-02-21 01:33:05 +00:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|