mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-28 23:06:43 -04:00
New: Improve path validation when handling paths from different OSes
(cherry picked from commit 0321368cc392d7a0a488409bf6bd586ba45497af) Closes #2309
This commit is contained in:
@@ -104,7 +104,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
{
|
||||
Ensure.That(bookFile, () => bookFile).IsNotNull();
|
||||
Ensure.That(author, () => author).IsNotNull();
|
||||
Ensure.That(destinationFilePath, () => destinationFilePath).IsValidPath();
|
||||
Ensure.That(destinationFilePath, () => destinationFilePath).IsValidPath(PathValidationType.CurrentOs);
|
||||
|
||||
var bookFilePath = bookFile.Path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user