aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-08-13 02:47:45 -0400
committerGitHub <noreply@github.com>2016-08-13 02:47:45 -0400
commit5b92b44f1a56e6e33a7d8d780882efe88fb67153 (patch)
treebd1835b753487592e2d09d0329152724f60310ea
parentc18b8ec608b44e04d17a1ef02a615b985ca00e7b (diff)
parentb309e06cb8741b7b697a57e230bd9f6ee452e8d9 (diff)
Merge pull request #2040 from softworkz/IsFileLockedFix
FileRefresher.IsFileLocked: Don't log Exceptions in case of no write permission
-rw-r--r--MediaBrowser.Server.Implementations/IO/FileRefresher.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
index 742585143..2f4605c5c 100644
--- a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
+++ b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
@@ -259,6 +259,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: