Merge pull request #2040 from softworkz/IsFileLockedFix

FileRefresher.IsFileLocked: Don't log Exceptions in case of no write permission
pull/702/head
Luke 8 years ago committed by GitHub
commit 5b92b44f1a

@ -259,6 +259,11 @@ namespace MediaBrowser.Server.Implementations.IO
// File may have been deleted // File may have been deleted
return false; return false;
} }
catch (UnauthorizedAccessException)
{
Logger.Debug("No write permission for: {0}.", path);
return false;
}
catch (IOException) catch (IOException)
{ {
//the file is unavailable because it is: //the file is unavailable because it is:

Loading…
Cancel
Save