Fixed: Don't create empty series folder if delete empty folders is enabled
Fixes #3838
This commit is contained in:
parent
dffdd3377e
commit
4f15cd55be
|
@ -93,11 +93,19 @@ namespace NzbDrone.Core.MediaFiles
|
|||
if (!seriesFolderExists)
|
||||
{
|
||||
if (_configService.CreateEmptySeriesFolders)
|
||||
{
|
||||
if (_configService.DeleteEmptyFolders)
|
||||
{
|
||||
_logger.Debug("Not creating missing series folder: {0} because delete empty series folders is enabled", series.Path);
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Debug("Creating missing series folder: {0}", series.Path);
|
||||
|
||||
_diskProvider.CreateFolder(series.Path);
|
||||
SetPermissions(series.Path);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Debug("Series folder doesn't exist: {0}", series.Path);
|
||||
|
|
Loading…
Reference in New Issue