project updates

This commit is contained in:
kay.one 2011-04-18 23:37:34 -07:00
commit b6c04dc2d0
3 changed files with 11 additions and 14 deletions

View file

@ -244,11 +244,10 @@ namespace NzbDrone.Core
return NormalizeRegex.Replace(title, String.Empty).ToLower();
}
//Note: changing case on path is a problem for running on mono/*nix
//Not going to change the casing any more... Looks Ugly in UI anyways :P
public static string NormalizePath(string path)
{
if (String.IsNullOrEmpty(path))
if (String.IsNullOrWhiteSpace(path))
throw new ArgumentException("Path can not be null or empty");
var info = new FileInfo(path);