mirror of
https://github.com/Radarr/Radarr
synced 2025-01-04 06:23:32 +00:00
Fixed: Don't create empty movie folder if delete empty folders is enabled
Fixes #4782
This commit is contained in:
parent
9b052101ab
commit
27844d9f5c
1 changed files with 11 additions and 3 deletions
|
@ -96,9 +96,17 @@ public void Scan(Movie movie)
|
|||
{
|
||||
if (_configService.CreateEmptyMovieFolders)
|
||||
{
|
||||
_logger.Debug("Creating missing movie folder: {0}", movie.Path);
|
||||
_diskProvider.CreateFolder(movie.Path);
|
||||
SetPermissions(movie.Path);
|
||||
if (_configService.DeleteEmptyFolders)
|
||||
{
|
||||
_logger.Debug("Not creating missing movie folder: {0} because delete empty series folders is enabled", movie.Path);
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Debug("Creating missing series folder: {0}", movie.Path);
|
||||
|
||||
_diskProvider.CreateFolder(movie.Path);
|
||||
SetPermissions(movie.Path);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue