mkdir

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
doc_ruby_on_rails
2015-04-03 11:46:00
Comments
Leave a Comment

Please login to continue.