set permissions on a new directory (not one that already exists) with mkdir
Dir.mkdir( "/Users/joe/sandbox", 755 )