是否包含目录

 

if (Directory.Exists(path))
{
string[] name = Directory.GetFiles(path);

foreach (string item in name)
{
file += item + "---";
}
}

posted @ 2014-06-26 11:48  ing...  阅读(145)  评论(0)    收藏  举报