mirror of https://github.com/lidarr/Lidarr
If folder does not exist...
This commit is contained in:
parent
25ae19bf80
commit
543cc4e6c1
|
@ -81,7 +81,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
|
|
||||||
var directoryName = new FileInfo(destinationFilename).DirectoryName;
|
var directoryName = new FileInfo(destinationFilename).DirectoryName;
|
||||||
|
|
||||||
if (_diskProvider.FolderExists(directoryName))
|
if (!_diskProvider.FolderExists(directoryName))
|
||||||
{
|
{
|
||||||
_diskProvider.CreateFolder(directoryName);
|
_diskProvider.CreateFolder(directoryName);
|
||||||
SetFolderPermissions(directoryName);
|
SetFolderPermissions(directoryName);
|
||||||
|
|
Loading…
Reference in New Issue