blob: 313c310d3e97cf1d667d151c7107491eebad5441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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;
}
}
}
}
|