collect_dir_history
static void collect_dir_history(const char *filename, int *error,
collect_dir_history(filename, &error, &dir_tree);