diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/ServerApplicationPaths.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/ServerApplicationPaths.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs b/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs index 25d9cf533..a723eb38e 100644 --- a/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs +++ b/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs @@ -18,6 +18,9 @@ namespace MediaBrowser.Server.Implementations { } #else +/// <summary> +/// Initializes a new instance of the <see cref="ServerApplicationPaths"/> class. +/// </summary> public ServerApplicationPaths() : base(false) { @@ -345,5 +348,30 @@ namespace MediaBrowser.Server.Implementations return _downloadedImagesDataPath; } } + + /// <summary> + /// The _music artists path + /// </summary> + private string _musicArtistsPath; + /// <summary> + /// Gets the artists path. + /// </summary> + /// <value>The artists path.</value> + public string ArtistsPath + { + get + { + if (_musicArtistsPath == null) + { + _musicArtistsPath = Path.Combine(ImagesByNamePath, "Artists"); + if (!Directory.Exists(_musicArtistsPath)) + { + Directory.CreateDirectory(_musicArtistsPath); + } + } + + return _musicArtistsPath; + } + } } } |
