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.

1
Dir.mkdir(File.join(Dir.home, ".foo"), 0700) #=> 0
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.