Recursive directory creation based on full path.
Will attempt to set permissions on folders.
<?php wp_mkdir_p( $target ) ?>
<?php if ( wp_mkdir_p( '/a/really/deep/sub/directory' ) ) { var_dump( file_exists( '/a/really/deep/sub/directory' ) ); // This should be true! } ?>
Since: 2.0.1
wp_mkdir_p() is located in wp-includes/functions.php
.