Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- lib/webpage-archivist/patches.rb
Class Method Summary collapse
-
.mkdir_if_not_exist(p1) ⇒ Object
Create a dit if it does not exist.
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 |