getDepIgnore method
Reads the .depignore
file and returns a list of paths to ignore.
Lines starting with #
are treated as comments.
Implementation
List<String> getDepIgnore() {
List<String> iList = [];
final String ignorePath = p.join(rootPath, '.depignore');
var dep = File(ignorePath);
var ignore = '';
if (dep.existsSync()) {
ignore = dep.readAsStringSync();
for (var item in ignore.split('\n')) {
var itm = item.trim();
if (itm.isNotEmpty) {
if (!itm.startsWith('#')) {
iList.add(p.join(rootPath, itm));
}
}
}
}
return iList;
}