Method: Rex::Compat.temp_delete

Defined in:
lib/rex/compat.rb

.temp_delete(tp) ⇒ Object

Delete an opened temporary file

Raises:



353
354
355
356
357
358
359
# File 'lib/rex/compat.rb', line 353

def self.temp_delete(tp)
  raise RuntimeError,"missing FileUtils" if not @@loaded_fileutils
  begin
    FileUtils.rm(tp.path)
  rescue
  end
end