diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-02 15:50:25 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-02 15:50:25 -0500 |
| commit | 3dd60b6ee05985ce0fbac6ed510aa6eacb974b09 (patch) | |
| tree | 1763f95e7055b0542787bc55a8ddd7f9c0bc72b0 | |
| parent | 123f0a559857b5b808afe28822edc29c92e31e7a (diff) | |
update search css loading
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryHelpers.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Library/LibraryHelpers.cs b/MediaBrowser.Api/Library/LibraryHelpers.cs index 111922bca..2e0afa411 100644 --- a/MediaBrowser.Api/Library/LibraryHelpers.cs +++ b/MediaBrowser.Api/Library/LibraryHelpers.cs @@ -56,6 +56,11 @@ namespace MediaBrowser.Api.Library /// <param name="appPaths">The app paths.</param> public static void AddMediaPath(IFileSystem fileSystem, string virtualFolderName, string path, IServerApplicationPaths appPaths) { + if (!string.IsNullOrWhiteSpace(path)) + { + throw new ArgumentNullException("path"); + } + if (!fileSystem.DirectoryExists(path)) { throw new DirectoryNotFoundException("The path does not exist."); |
