Method: Selenium::WebDriver::FileReaper.reap
- Defined in:
- lib/selenium/webdriver/common/file_reaper.rb
permalink .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.
43 44 45 46 47 48 49 |
# File 'lib/selenium/webdriver/common/file_reaper.rb', line 43 def reap(file) return unless reap? raise Error::WebDriverError, "file not added for reaping: #{file.inspect}" unless tmp_files.include?(file) FileUtils.rm_rf tmp_files.delete(file) end |