Method: FileUtils#fu_mkdir

Defined in:
lib/fileutils.rb

#fu_mkdir(path, mode) ⇒ Object

:nodoc:

[View source]

397
398
399
400
401
402
403
404
405
# File 'lib/fileutils.rb', line 397

def fu_mkdir(path, mode)   #:nodoc:
  path = remove_trailing_slash(path)
  if mode
    Dir.mkdir path, mode
    File.chmod mode, path
  else
    Dir.mkdir path
  end
end