Added InheritFolderPermissions to DiskProvider.

DiskScanProvider.MoveEpisode will now set the moved file to inherit the parent folder permissions.
This commit is contained in:
Mark McDowall 2011-10-10 21:00:31 -07:00
commit c534d47b0a
3 changed files with 10 additions and 228 deletions

View file

@ -171,6 +171,9 @@ namespace NzbDrone.Core.Providers
Logger.Debug("Moving [{0}] > [{1}]", episodeFile.Path, newFile.FullName);
_diskProvider.MoveFile(episodeFile.Path, newFile.FullName);
//Make the file inherit parent permissions
_diskProvider.InheritFolderPermissions(newFile.FullName);
//Update the filename in the DB
episodeFile.Path = newFile.FullName;
_mediaFileProvider.Update(episodeFile);