CmisSync.Lib.Config.RepoInfo.IsPathIgnored C# (CSharp) Method

IsPathIgnored() public method

If the given path should be ignored, TRUE will be returned, otherwise FALSE.
public IsPathIgnored ( string path ) : bool
path string /// Path to be checked ///
return bool
        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] == '/';
            }));
        }