mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Post processor now deletes folders that are less than 40MB.
This commit is contained in:
parent
3dd7b3d768
commit
b3e4485d71
6 changed files with 27 additions and 11 deletions
|
@ -68,7 +68,7 @@ namespace NzbDrone.Core.Providers
|
|||
importedFiles.ForEach(file => _diskScanProvider.MoveEpisodeFile(file, true));
|
||||
|
||||
//Delete the folder only if folder is small enough
|
||||
if (_diskProvider.GetDirectorySize(subfolderInfo.FullName) < 10.Megabytes())
|
||||
if (_diskProvider.GetDirectorySize(subfolderInfo.FullName) < Constants.IgnoreFileSize)
|
||||
{
|
||||
_diskProvider.DeleteFolder(subfolderInfo.FullName, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue