1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 09:47:39 +00:00

Fixed: Issue sorting downloads non-Windows NAS

This commit is contained in:
Mark McDowall 2012-11-06 16:53:56 -08:00
parent a26840fb60
commit f40305cb04

View file

@ -198,7 +198,15 @@ namespace NzbDrone.Core.Providers
Logger.Debug("Moving [{0}] > [{1}]", episodeFile.Path, newFile.FullName);
_diskProvider.MoveFile(episodeFile.Path, newFile.FullName);
//Wrapped in Try/Catch to prevent this from causing issues with remote NAS boxes, the move worked, which is more important.
try
{
_diskProvider.InheritFolderPermissions(newFile.FullName);
}
catch (UnauthorizedAccessException ex)
{
Logger.Debug("Unable to apply folder permissions to: ", newFile.FullName);
}
episodeFile.Path = newFile.FullName;
_mediaFileProvider.Update(episodeFile);