mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Added InheritFolderPermissions to DiskProvider.
DiskScanProvider.MoveEpisode will now set the moved file to inherit the parent folder permissions.
This commit is contained in:
parent
b695a4433e
commit
c534d47b0a
3 changed files with 10 additions and 228 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue