Demo entry 6682292

c#

   

Submitted by anonymous on Dec 08, 2017 at 02:45
Language: C#. Code size: 374 Bytes.

string folderPath = dialog.SelectedPath;
                    DirectoryInfo dirInfo = new DirectoryInfo(folderPath);//读取comfig文件中的站点路径path元素所指定的文件位置
                    List<FileInfo> fileInfo = dirInfo.GetFiles().ToList();//返回当前目录经过FileFilter过滤后文件列表
                    if (fileInfo.Count==0)
                    {
                        return;
                    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).