Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/fileminer/tools/io.rb

Class Method Summary collapse

Class Method Details

.mkdirs(path) ⇒ Object

Creates the directory with the path given, including anynecessary but nonexistent parent directories.

Parameters:

  • path (String)


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