You appear to be a bot. Output may be restricted
Description
Create the target directory if it does not already exist as a directory
Usage
$bool = bw_mkdir( $tofile );
Parameters
- $tofile
- ( mixed ) required –
Returns
bool indicator of success Note: We set the directory permissions to octal 755Source
File name: oik/admin/oik-relocate.incLines:
1 to 11 of 11
function bw_mkdir( $tofile ) { $dir = dirname( $tofile ); $success = file_exists( $dir ); if ( $success ) { $success = is_dir( $dir ); } else { $success = mkdir( $dir, 0755, true ); } //bw_trace2( $success, "success?" ); return( $success ); }View on GitHub View on Trac