module Ccp::Persistent::Versioned::StorageScanner
Public Instance Methods
scan(dir)
click to toggle source
# File lib/ccp/persistent/versioned.rb, line 39 def scan(dir) files = Dir.chdir(dir){ Dir["*"].grep(/^(\d+)\./).sort{|a,b| [a.to_i, File.mtime(a)] <=> [b.to_i, File.mtime(b)] } } end