Module: Rtlog::DirUtils
Instance Method Summary collapse
Instance Method Details
#entries(path) ⇒ Object
23 24 25 |
# File 'lib/rtlog/archives.rb', line 23 def entries(path) Dir.entries(path).delete_if{|d| !(/\d+/ =~ d) }.reverse.map!{ |file| File.join(path, file) } end |