You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.UI/Configuration/UIApplicationPaths.cs

38 lines
1.0 KiB

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