Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/webpage-archivist/patches.rb

Class Method Summary collapse

Class Method Details

.mkdir_if_not_exist(p1) ⇒ Object

Create a dit if it does not exist



42
43
44
45
46
# File 'lib/webpage-archivist/patches.rb', line 42

def self.mkdir_if_not_exist p1
  unless Dir.exist? p1
    Dir.mkdir p1
  end
end