use Dir.mkdir to create directories : mkdir « File Directory « Ruby






use Dir.mkdir to create directories

Dir.mkdir("mynewdir")

 

Related examples in the same category

1.specify absolute paths to create directories under other specific directories:
2.If you need a directory, create it with mkdir; later on, delete it with rmdir (or delete, a synonym of rmdir
3.set permissions on a new directory (not one that already exists) with mkdir