摘要:
#include <stdio.h>#include <dirent.h>#include <sys/types.h>#include <sys/stat.h>#include <string>#include <string.h>using namespace std;void List(const char *path, int level) { struct dirent* ent = NULL; DIR *pDir; pDir = opendir(path); if (pDir == NULL) { //被当作目录 阅读全文