public bool IsPathIgnored(string path) {
string[] names = path.Split("/".ToCharArray());
foreach (string name in names) {
if (Utils.IsInvalidFolderName(name, new List<string>())) {
return true;
}
}
return !string.IsNullOrEmpty(this.GetIgnoredPaths().Find(delegate(string ignore) {
if (string.IsNullOrEmpty(ignore)) {
return false;
}
if (path.Equals(ignore)) {
return true;
}
return path.StartsWith(ignore) && path[ignore.Length] == '/';
}));
}