 
     System.put_env("XDG_DATA_HOME", Path.join(dest, ".nerves"))
 
-    File.rm_rf!(dest)
+    _ = File.rm_rf!(dest)
     File.mkdir_p!(dest)
-    File.cp_r!(src, dest)
+    _ = File.cp_r!(src, dest)
 
     get_path = :code.get_path()
     previous = :code.all_loaded()


  def in_tmp(which, function) do
    path = tmp_path(which)
    File.rm_rf!(path)
    File.mkdir_p!(path)
    File.cd!(path, function)
  end

      File.cd!(dest, function)
      :timer.sleep(10)
    after
      true = :code.set_path(get_path)

      for {mod, file} <- :code.all_loaded() -- previous,
          file == [] or (is_list(file) and List.starts_with?(file, flag)) do
