diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-02-18 03:32:17 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-02-18 03:32:17 -0500 |
| commit | 6091e00e180b9b859de99c72b23dc155f284f516 (patch) | |
| tree | d59db82f7dadc0302cc20b8165036369cd25f41a /MediaBrowser.Controller/Entities/Game.cs | |
| parent | 36f8eb1149e821de46b1ee15dcd1990c6a378ca9 (diff) | |
clean related files when deleting items
Diffstat (limited to 'MediaBrowser.Controller/Entities/Game.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Game.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/Game.cs b/MediaBrowser.Controller/Entities/Game.cs index 8bfb8be99..d19552c07 100644 --- a/MediaBrowser.Controller/Entities/Game.cs +++ b/MediaBrowser.Controller/Entities/Game.cs @@ -4,6 +4,7 @@ using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; using System.Linq; +using MediaBrowser.Model.IO; using MediaBrowser.Model.Serialization; namespace MediaBrowser.Controller.Entities @@ -97,11 +98,17 @@ namespace MediaBrowser.Controller.Entities return list; } - public override IEnumerable<string> GetDeletePaths() + public override IEnumerable<FileSystemMetadata> GetDeletePaths() { if (!DetectIsInMixedFolder()) { - return new[] { System.IO.Path.GetDirectoryName(Path) }; + return new[] { + new FileSystemMetadata + { + FullName = System.IO.Path.GetDirectoryName(Path), + IsDirectory = true + } + }; } return base.GetDeletePaths(); |
