Fixed: Don't create empty series folder if delete empty folders is enabled
Fixes #3838
This commit is contained in:
parent
dffdd3377e
commit
4f15cd55be
|
@ -94,9 +94,17 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
{
|
{
|
||||||
if (_configService.CreateEmptySeriesFolders)
|
if (_configService.CreateEmptySeriesFolders)
|
||||||
{
|
{
|
||||||
_logger.Debug("Creating missing series folder: {0}", series.Path);
|
if (_configService.DeleteEmptyFolders)
|
||||||
_diskProvider.CreateFolder(series.Path);
|
{
|
||||||
SetPermissions(series.Path);
|
_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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue