private void getchildDir(string StrRoot,ref Arrylist Arr)
{
string dirs =directory.getdiretories(strRoot);
foreach(dir str in dirs){
Arr.add(dir);
getchildDir(dir,ref arr);
}
}
string stroot ="@文件路径";
Arrylist Arr;
getchildDir(string StrRoot,ref Arrylist Arr);