|
|
@ -37,7 +37,6 @@ namespace NzbDrone.Api.Directories
|
|
|
|
return dirs;
|
|
|
|
return dirs;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<string> GetSubDirectories(string path)
|
|
|
|
private List<string> GetSubDirectories(string path)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
@ -47,12 +46,15 @@ namespace NzbDrone.Api.Directories
|
|
|
|
catch (DirectoryNotFoundException)
|
|
|
|
catch (DirectoryNotFoundException)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new List<string>();
|
|
|
|
return new List<string>();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (ArgumentException)
|
|
|
|
catch (ArgumentException)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new List<string>();
|
|
|
|
return new List<string>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (IOException)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new List<string>();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|