ruby遍历文件夹

作者在 2015-07-22 10:50:00 发布以下内容
已经不需要自己写递归了,新版ruby直接提供了Find模块

require 'find'

Find.find('./') do |path|
  puts path
end
Ruby | 阅读 4985 次
文章评论,共0条
游客请输入验证码
浏览2776918次
文章归档