Only run InheritFolderPermissions on Windows

This commit is contained in:
Mark McDowall 2013-10-16 17:20:28 -07:00
parent acd2069d5a
commit c708b5ce1a
1 changed files with 13 additions and 8 deletions

View File

@ -3,6 +3,7 @@ using System.IO;
using System.Linq;
using NLog;
using NzbDrone.Common;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Core.Messaging.Events;
using NzbDrone.Core.Organizer;
using NzbDrone.Core.Parser.Model;
@ -84,6 +85,9 @@ namespace NzbDrone.Core.MediaFiles
_diskProvider.SetFolderWriteTime(seasonFolder, episodeFile.DateAdded);
}
//We should only run this on Windows
if (OsInfo.IsWindows)
{
//Wrapped in Try/Catch to prevent this from causing issues with remote NAS boxes, the move worked, which is more important.
try
{
@ -96,4 +100,5 @@ namespace NzbDrone.Core.MediaFiles
}
}
}
}
}