src/includes/mock-fs.php
function mkdir( $path, /* Optional args are ignored */ $chmod = false, $chown = false, $chgrp = false ) {
		$path = trailingslashit( $path );

		$parent_node = $this->locate_parent_node( $path );
		if ( ! $parent_node ) {
			$dirname = str_replace( '\\', '/', dirname( $path ) );
			$this->mkdir( $dirname );
			$parent_node = $this->locate_parent_node( $path );
			if ( ! $parent_node )
				return false;
		}

		$node = new MockFS_Directory_Node( $path );

		$parent_node->children[ $node->name ] = $node;
		$this->fs_map[ $path ] = $node;

		return true;
	}
function mkdir( $path, /* Optional args are ignored */ $chmod = false, $chown = false, $chgrp = false ) {
		$path = trailingslashit( $path );

		$parent_node = $this->locate_parent_node( $path );
		if ( ! $parent_node ) {
			$dirname = str_replace( '\\', '/', dirname( $path ) );
			$this->mkdir( $dirname );
			$parent_node = $this->locate_parent_node( $path );
			if ( ! $parent_node )
				return false;
		}

		$node = new MockFS_Directory_Node( $path );

		$parent_node->children[ $node->name ] = $node;
		$this->fs_map[ $path ] = $node;

		return true;
	}
function mkdir ( $ path , /* Optional args are ignored */ $ chmod = false , $ chown = false , $ chgrp = false ) { $ path = trailingslashit ( $ path ) ; $ parent_node = $ this -> locate_parent_node ( $ path ) ; if ( ! $ parent_node ) { $ dirname = str_replace ( '\\' , '/' , dirname ( $ path ) ) ; $ this -> mkdir ( $ dirname ) ; $ parent_node = $ this -> locate_parent_node ( $ path ) ; if ( ! $ parent_node ) return false ; } $ node = new MockFS_Directory_Node ( $ path ) ; $ parent_node -> children [ $ node -> name ] = $ node ; $ this -> fs_map [ $ path ] = $ node ; return true ; }
Here starteth the WP_Filesystem functions.
Here starteth the WP_Filesystem functions .