shouldIgnoreAtRoot function
Returns whether absolutePath under rootDirectory is excluded by
patterns.
Implementation
bool shouldIgnoreAtRoot({
required String rootDirectory,
required String absolutePath,
required List<String> patterns,
}) {
final relativePath = relativePathWithinRoot(
rootDirectory: rootDirectory,
absolutePath: absolutePath,
);
if (relativePath == null) {
return false;
}
return matchesIgnorePatterns(
relativePath: relativePath,
patterns: patterns,
);
}