static function getExportFolder() {

		$path = \Pressbooks\Utility\get_media_prefix() . 'exports/';
		if ( ! file_exists( $path ) ) {
			wp_mkdir_p( $path );
		}

		$path_to_htaccess = $path . '.htaccess';
		if ( ! file_exists( $path_to_htaccess ) ) {
			// Restrict access
			\Pressbooks\Utility\put_contents( $path_to_htaccess, "deny from all\n" );
		}

		/**
		 * @since 5.3.0
		 *
		 * Filters the export folder path
		 * Use this hook to change the location of the export folder.
		 *
		 * @param string $path The path to the Pressbooks export folder
		 */
		$path = apply_filters( 'pb_get_export_folder', $path );

		return $path;
	}
static function getExportFolder() {

		$path = \Pressbooks\Utility\get_media_prefix() . 'exports/';
		if ( ! file_exists( $path ) ) {
			wp_mkdir_p( $path );
		}

		$path_to_htaccess = $path . '.htaccess';
		if ( ! file_exists( $path_to_htaccess ) ) {
			// Restrict access
			\Pressbooks\Utility\put_contents( $path_to_htaccess, "deny from all\n" );
		}

		/**
		 * @since 5.3.0
		 *
		 * Filters the export folder path
		 * Use this hook to change the location of the export folder.
		 *
		 * @param string $path The path to the Pressbooks export folder
		 */
		$path = apply_filters( 'pb_get_export_folder', $path );

		return $path;
	}
static function getExportFolder ( ) { $ path = \ Pressbooks \ Utility \ get_media_prefix ( ) . 'exports/' ; if ( ! file_exists ( $ path ) ) { wp_mkdir_p ( $ path ) ; } $ path_to_htaccess = $ path . '.htaccess' ; if ( ! file_exists ( $ path_to_htaccess ) ) { // Restrict access \ Pressbooks \ Utility \ put_contents ( $ path_to_htaccess , "deny from all\n" ) ; } /**
		 * @since 5.3.0
		 *
		 * Filters the export folder path
		 * Use this hook to change the location of the export folder.
		 *
		 * @param string $path The path to the Pressbooks export folder
		 */ $ path = apply_filters ( 'pb_get_export_folder' , $ path ) ; return $ path ; }
Get the fullpath to the Exports folder.
Create if not there. Create .htaccess protection if missing.

@return string fullpath
Get the fullpath to the Exports folder . Create if not there . Create . htaccess protection if missing .