开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜