Ruby/File Directory/mkdir
Материал из Wiki.crossplatform.ru
If you need a directory, create it with mkdir; later on, delete it with rmdir (or delete, a synonym of rmdir
Dir.mkdir( "/Users/joe/sandbox" ) Dir.rmdir( "/Users/joe/sandbox" )
set permissions on a new directory (not one that already exists) with mkdir
Dir.mkdir( "/Users/joe/sandbox", 755 )
specify absolute paths to create directories under other specific directories:
Dir.mkdir("/mynewdir") Dir.mkdir("c:\test")
use Dir.mkdir to create directories
Dir.mkdir("mynewdir")