2006 10 02 11 38 [C] travel all files in a directory.

記錄用,免得又忘記了。。。

#include

FTS fts_open(char const path_argv, int options, int (compar)(const FTSENT , const FTSENT ));
FTSENT fts_read(FTS ftsp);
FTSENT fts_children(FTS ftsp, int options);
int fts_set(FTS ftsp, FTSENT f, int options);
int fts_close(FTS ftsp);