You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: search.rb
    path of file: ./repos/metasploit-framework/test/modules/post/test
    
    the code of the file until where you have to start completion: require 'rex/post/meterpreter/extensions/stdapi/command_ids'
require 'rex'

lib = File.join(Msf::Config.install_root, "test", "lib")
$LOAD_PATH.push(lib) 
    
  def test_fs_search
    vprint_status("Starting search tests")

    pwd = session.fs.dir.getwd

    it "should search for new files" do
      res = true
      found = false
      files = client.fs.file.search(pwd, "*", false)
      files.each do |file|
        if file['name'] == @file_name
          res &&= (found == false)
          found = true
          res &&= (file['path'] == pwd)
        end
      end
      res &&= found
      res
    end