.

getting file list in a directory

 

DirectoryInfo directoryInfo = new DirectoryInfo(_appConfig.InputPath);
List<FileInfo> fileInfoList = new List<FileInfo>();
fileInfoList.AddRange(directoryInfo.GetFiles("*.*"));

 

What's your thoughts on this?

*

Protected by WP Anti Spam