dir_struct: add collect_ignored option