Method: Selenium::WebDriver::FileReaper.reap

Defined in:
lib/selenium/webdriver/common/file_reaper.rb

.reap(file) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


48
49
50
51
52
53
54
55
56
# File 'lib/selenium/webdriver/common/file_reaper.rb', line 48

def reap(file)
  return unless reap?

  unless tmp_files.include?(file)
    raise Error::WebDriverError, "file not added for reaping: #{file.inspect}"
  end

  FileUtils.rm_rf tmp_files.delete(file)
end