mirror of
https://github.com/Radarr/Radarr
synced 2025-02-26 16:13:19 +00:00
Don't throw permissions errors when importing files
Fixed: Better error handling when setting permissions after import (mono)
This commit is contained in:
parent
f104be6dd1
commit
cde3d0b44a
1 changed files with 4 additions and 9 deletions
|
@ -7,6 +7,7 @@
|
|||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Common.EnsureThat;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Common.Exceptions;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Organizer;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
|
@ -172,16 +173,10 @@ private void SetPermissions(string path, string permissions)
|
|||
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex is UnauthorizedAccessException || ex is InvalidOperationException)
|
||||
{
|
||||
_logger.Debug("Unable to apply permissions to: ", path);
|
||||
|
||||
_logger.WarnException("Unable to apply permissions to: " + path, ex);
|
||||
_logger.DebugException(ex.Message, ex);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void SetFolderPermissions(string path)
|
||||
|
|
Loading…
Reference in a new issue