# File lib/nice-ffi/pathset.rb, line 452
  def find( *names )
    os = FFI::Platform::OS

    # Fetch the paths and files for the matching OSes.
    paths = @paths.collect{ |regexp,ps| regexp =~ os ? ps : [] }.flatten
    files = @files.collect{ |regexp,fs| regexp =~ os ? fs : [] }.flatten

    # Drat, they are using an OS with no matches.
    if paths.empty? and files.empty?
      raise( LoadError, "Your OS (#{os}) is not supported yet.\n" +
             "Please report this and help us support more platforms." )
    end

    results = paths.collect do |path|
      files.collect do |file|
        names.collect do |name|
          # Join path and file, fill in for [NAME], expand, and unglob.
          Dir[ File.expand_path( File.join(path,file).gsub("[NAME]",name) ) ]
        end
      end
    end

    return results.flatten.select{ |r| File.exist? r }
  end