Don't try to process a download client item with an invalid path for the OS

This commit is contained in:
Mark McDowall
2015-10-20 23:34:13 -07:00
parent 330554edb0
commit 04de0049fe
3 changed files with 41 additions and 0 deletions
+8
View File
@@ -153,6 +153,14 @@ namespace NzbDrone.Common.Disk
}
}
public bool IsValid
{
get
{
return _path.IsPathValid();
}
}
private int GetFileNameIndex()
{
if (_path.Length < 2)