def flatten_file_system2(path):
    file_tree = FileTree(path)
    return file_tree.dfs_list()