使用Ruby查找在树上找到最新的文件名
我有一棵很大的树。我想搜索带有特定基本文件名的最后一个修改的文件。
IE,有很多具有相同basename的文件,我只想进行最后的修改。我想(有效地),最后一个修改的
IE,求程目录,首先通过修改日期(最新第一个)。我找不到任何find.找到方法。
I have a very large tree. I want to search for the last modified file, with a specific base file name.
I.e., there are many files with the same basename, and I just want the last modified. I want to find (efficiently), the last modified
I.e., Recourse directories, depth first, then, by modify date (latest first). I could not find anything using Find.find how to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会这样做:
I would do this: