开发者

Does the FileInfo.GetFiles method in .NET CF retrieve all files recursively?

开发者 https://www.devze.com 2022-12-31 08:29 出处:网络
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 whethe

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

精彩评论

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