class Bootsnap::LoadPathCache::Path

def latest_mtime(path, dirs)

Experimental RBS support (using type sampling data from the type_fusion project).

def latest_mtime: (String path, Array[String] dirs) -> Integer

This signature was generated using 3 samples from 1 application.

/a/b/c, pass ('/a/b', ['c'])
list of relative paths to directories under +path+. e.g. for /a/b and
last time a directory was modified in this subtree. +dirs+ should be a
def latest_mtime(path, dirs)
  max = -1
  ["", *dirs].each do |dir|
    curr = begin
      File.mtime("#{path}/#{dir}").to_i
           rescue Errno::ENOENT, Errno::ENOTDIR, Errno::EINVAL
             -1
    end
    max = curr if curr > max
  end
  max
end