public/wordpress/wp-content/plugins/wp-courseware/includes/functions/core.php
/**
 * Create WP Courseware Upload Directory.
 *
 * @since 4.3.0
 */
Create WP Courseware Upload Directory.
Create WP Courseware Upload Directory .
function wpcw_create_upload_directory() {
	$path = wpcw_get_upload_directory_path();
	if ( ! file_exists( $path ) ) {
		@mkdir( $path, 0777, true );
	}
	if ( file_exists( $path ) ) {
		touch( $path . 'index.php' );
	}
}
function wpcw_create_upload_directory ( ) { $ path = wpcw_get_upload_directory_path ( ) ; if ( ! file_exists ( $ path ) ) { @ mkdir ( $ path , 0777 , true ) ; } if ( file_exists ( $ path ) ) { touch ( $ path . 'index.php' ) ; } }
Create WP Courseware Upload Directory.
Create WP Courseware Upload Directory .
// Create an empty index page to stop directory listings.