Method: Command::Update.get_newest_hotentry_file_path

Defined in:
lib/command/update.rb

.get_newest_hotentry_file_path(device) ⇒ Object



421
422
423
424
# File 'lib/command/update.rb', line 421

def self.get_newest_hotentry_file_path(device)
  pattern = File.join(Update.hotentry_dirname, "hotentry_*#{device.ebook_file_ext}")
  Dir.glob(pattern).sort.last
end