+ FILE *dump = fopen("fileinfo", "w");
+ if (dump == NULL) {
+ fprintf(stderr, "Cannot open fileinfo: %m\n");
+ return 1;
+ }
+
+ FileOutputStream os(dump);
+ info_dump = &os;
+
+ try {
+ scandir(".");
+ } catch (IOException e) {
+ fprintf(stderr, "IOException: %s\n", e.getError().c_str());
+ }