/// <summary> /// Checks if the specified path is included or excluded /// </summary> public bool IsHandlingPath(UPath path) { if (path.IsNull) { return(false); } // e.g always exclude .lunet/build, can't be overriden by the users var isForceExcluded = ForceExcludes.IsMatch(path); if (isForceExcluded) { return(false); } // If we have an explicit include, it overrides any excludes var isIncluded = Includes.IsMatch(path); if (isIncluded) { return(true); } var isExcluded = Excludes.IsMatch(path); return(!isExcluded); }