Does the FileInfo.GetFiles method in .NET CF retrieve all files recursively?
I see .NET has the option: SearchOption.TopDirectoryOnly
which he开发者_如何学Golps me to limit the file list retrieval for just the selected directory, not subdirectories. I would like to know whether .NET CF has any options to do so?
The .Net Compact Framework has no built-in methods that recurse subdirectories.
If you just want to get the files that are directly in a directory (and not the subdirectories), you can simply call Directory.GetFiles
.
精彩评论