Dir.mkdir( string [, integer] ) â 0
Class Public methods
Makes a new directory named by string, with permissions specified
by the optional parameter anInteger. The permissions may be
modified by the value of File::umask, and are ignored on NT.
Raises a SystemCallError if the directory cannot be created.
See also the discussion of permissions in the class documentation for
File.
Dir.mkdir(File.join(Dir.home, ".foo"), 0700) #=> 0