getExcludedPaths method
Implementation
List<String> getExcludedPaths(SettingsYaml yaml, String path, int index) {
final yamlPathToExluded = 'externals.external[$index].exclude';
if (!yaml.selectorExists(yamlPathToExluded)) {
return [];
}
final relativeExcludes =
yaml.selectAsList('externals.external[$index].exclude') ?? <dynamic>[];
final absoluteExcludes = <String>[];
for (final exclude in relativeExcludes) {
absoluteExcludes.add(truepath(path, exclude as String));
}
return absoluteExcludes;
}