}
/// Merges the [fileSource] and [filePreference] into the [target] file.
void mergeOneFile(File fileSource, File filePreference, String target) {
+ print('merging ${fileSource.path}');
parseKeys(filePreference);
final output = <String>[];
final foundKeys = <String>{};
logger.error('source not a directory: $pathTarget');
} else {
/// Copy/merge the files from dirSource:
- for (var file in dirSource.listSync()) {
+ final dirs = dirSource.listSync().toList();
+ for (var file in dirs) {
final node = basename(file.path);
if (! node.endsWith('.yaml')){
continue;