mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Delete Subfolder after import
This commit is contained in:
parent
bc7e543c4d
commit
14853e7e3c
@ -55,6 +55,11 @@ public void ProcessDownloadedEpiosdesFolder()
|
||||
if (!_seriesService.SeriesPathExists(subfolder))
|
||||
{
|
||||
ProcessSubFolder(new DirectoryInfo(subfolder));
|
||||
|
||||
if (_diskProvider.GetDirectorySize(subfolder) < 50.Megabytes())
|
||||
{
|
||||
_diskProvider.DeleteFolder(subfolder, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
Loading…
Reference in New Issue
Block a user