Linq to 文件系统获取每个子文件夹中最后创建的具有不同扩展名的文件
请参阅我的帖子。
在这里,我在每个子文件夹中获取最新创建的文件,但我需要获取具有不同扩展名的最新创建的文件。
例如,有五个子文件夹,每个子文件夹包含多个 PDF 文件和多个 Excel 文件,那么查询应从每个目录中带入一个 PDF 文件和一个 Excel 文件。结果中应该有十项。
see my post.
Here I am getting latest created file in each sub folder, but I need to get the latest created files with different extensions.
For example, there are five sub folders each containing more than one PDF file and more than one Excel file, then the query should bring one PDF file and one Excel file from each directory. I should have ten items in the result.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这对你有用吗?
Would this work for you?