/// <summary>
/// If the given path should be ignored, TRUE will be returned,
/// otherwise FALSE.
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
public bool isPathIgnored(string path)
{
if (Utils.IsInvalidFolderName(path.Replace("/", "").Replace("\"", "")))
{
return(true);
}
return(!String.IsNullOrEmpty(ignoredPaths.Find(delegate(string ignore)
{
if (String.IsNullOrEmpty(ignore))
{
return false;
}
return path.StartsWith(ignore);
})));
}