code: def mtime(file)
              begin
                  return unless file
                  stat = File.stat(file)
                  stat.file? ? stat.mtime.to_i : nil
              rescue Errno::ENOENT, Errno::ENOTDIR, Errno::ESRCH
                  nil
              end
          end
docs: Returns the modification time of _file_.