public function mkdir_p( $file, array $atts = array() ) {

		$dir_levels = $this->parse_path( $file );
		$path = '';

		$atts['type'] = 'dir';

		foreach ( $dir_levels as $level ) {

			$path .= '/' . $level;

			if ( $this->exists( $path ) ) {
				continue;
			}

			if ( ! $this->add_file( $path, $atts ) ) {
				return false;
			}
		}

		return true;
	}
public function mkdir_p( $file, array $atts = array() ) {

		$dir_levels = $this->parse_path( $file );
		$path = '';

		$atts['type'] = 'dir';

		foreach ( $dir_levels as $level ) {

			$path .= '/' . $level;

			if ( $this->exists( $path ) ) {
				continue;
			}

			if ( ! $this->add_file( $path, $atts ) ) {
				return false;
			}
		}

		return true;
	}
public function mkdir_p ( $ file , array $ atts = array ( ) ) { $ dir_levels = $ this -> parse_path ( $ file ) ; $ path = '' ; $ atts [ 'type' ] = 'dir' ; foreach ( $ dir_levels as $ level ) { $ path .= '/' . $ level ; if ( $ this -> exists ( $ path ) ) { continue ; } if ( ! $ this -> add_file ( $ path , $ atts ) ) { return false ; } } return true ; }
Create a deep directory.

@since 0.1.0

@param string $file The path of the file/directory to create.
@param array  $atts The attributes of the file/directory.

@return bool True if the file was added, false otherwise.
Create a deep directory .