Module: Rtlog::DirUtils

Included in:
Archive, Entry, Tweet
Defined in:
lib/rtlog/archives.rb

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