diff options
| author | softworkz <softworkz@hotmail.com> | 2016-08-08 20:49:31 +0200 |
|---|---|---|
| committer | softworkz <softworkz@hotmail.com> | 2016-08-08 20:51:07 +0200 |
| commit | b309e06cb8741b7b697a57e230bd9f6ee452e8d9 (patch) | |
| tree | 1ce337c43021c137ad0f376ae9bcbbbdd2461f5c | |
| parent | d71a468388335d407ef73e933bddb59c4f2b4d1d (diff) | |
FileRefresher.IsFileLocked: Don't log Exceptions in case of no write permission
| -rw-r--r-- | MediaBrowser.Server.Implementations/IO/FileRefresher.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs index f48beacb5..5c72ac9c7 100644 --- a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs +++ b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs @@ -254,6 +254,11 @@ namespace MediaBrowser.Server.Implementations.IO // File may have been deleted return false; } + catch (UnauthorizedAccessException) + { + Logger.Debug("No write permission for: {0}.", path); + return false; + } catch (IOException) { //the file is unavailable because it is: |
