Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- lib/fileminer/tools/io.rb
Class Method Summary collapse
-
.mkdirs(path) ⇒ Object
Creates the directory with the path given, including anynecessary but nonexistent parent directories.
Class Method Details
.mkdirs(path) ⇒ Object
Creates the directory with the path given, including anynecessary but nonexistent parent directories.
8 9 10 11 12 |
# File 'lib/fileminer/tools/io.rb', line 8 def mkdirs(path) parent = File.dirname path mkdirs parent unless Dir.exist? parent Dir.mkdir path end |