function onDir( error ) {
		var bopts;
		if ( error ) {
			debug( 'Encountered an error when creating output directory. Package: %s (%d of %d). Directory: %s. Error: %s', pkg, i+1, total, dpath, error.message );
			return clbk( error );
		}
		debug( 'Successfully created output directory.' );

		debug( 'Generating package bundle %d of %d: %s', i+1, total, pkg );
		bopts = {
			'pattern': opts.files_pattern,
			'bundle': opts.bundle,
			'html': opts.html,
			'mount': opts.mount + ppath,
			'title': opts.title
		};
		build( pkg, dpath, bopts, onBundle );
	}
Callback invoked upon creating an output directory.

@private
@param {Error} [error] - error object
@returns {void}