scanRepository method
Implementation
String scanRepository([String root = '.', int maxDepth = 4, int maxLines = 30]) {
final dir = Directory(root);
if (!dir.existsSync()) {
return 'Directory not found: $root';
}
final buffer = StringBuffer();
int lineCount = 0;
_scanDirectory(dir, '', buffer, 0, maxDepth, maxLines, lineCount);
return buffer.toString();
}