Method: Rex::FileUtils.normalize_unix_path

Defined in:
lib/rex/file.rb

.normalize_unix_path(*strs) ⇒ Object

This method joins the paths together in Unix format.



19
20
21
22
23
24
# File 'lib/rex/file.rb', line 19

def self.normalize_unix_path(*strs)
  new_str = strs * '/'
  new_str = new_str.gsub!("//", "/") while new_str.index("//")

  new_str
end