日期:2014-05-17 浏览次数:20742 次
void ParseDirectory(string path, string filter)
{
string[] dirs = Directory.GetDirectories(path);//得到子目录
IEnumerator iter = dirs.GetEnumerator();
while(iter.MoveNext())
{
string str = (string)(iter.Current);
ParseDirectory(str, filter);
}
string[] files = Directory.GetFiles(path, filter);
if(files.Length > 0)
{
m_numFiles += files.Length;
m_pathList.Add(files);
}
}[