| OLD | NEW |
| (Empty) | |
| 1 library angular.io_impl; |
| 2 |
| 3 import 'dart:io'; |
| 4 import 'io.dart'; |
| 5 |
| 6 class IoServiceImpl implements IoService { |
| 7 |
| 8 String readAsStringSync(String filePath) => |
| 9 new File(filePath).readAsStringSync(); |
| 10 |
| 11 void visitFs(String rootDir, FsVisitor visitor) { |
| 12 Directory root = new Directory(rootDir); |
| 13 if (!FileSystemEntity.isDirectorySync(rootDir)) { |
| 14 throw 'Expected $rootDir to be a directory!'; |
| 15 } |
| 16 root.listSync(recursive: true, followLinks: true).forEach((entity) { |
| 17 if (entity.statSync().type == FileSystemEntityType.FILE) { |
| 18 visitor(entity.path); |
| 19 } |
| 20 }); |
| 21 } |
| 22 } |
| OLD | NEW |