public static function getCoversFolder() {

		$path = \Pressbooks\Utility\get_media_prefix() . 'covers/';
		if ( ! file_exists( $path ) ) {
			mkdir( $path, 0775, true );
		}

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

		return $path;
	}
public static function getCoversFolder() {

		$path = \Pressbooks\Utility\get_media_prefix() . 'covers/';
		if ( ! file_exists( $path ) ) {
			mkdir( $path, 0775, true );
		}

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

		return $path;
	}
public static function getCoversFolder ( ) { $ path = \ Pressbooks \ Utility \ get_media_prefix ( ) . 'covers/' ; if ( ! file_exists ( $ path ) ) { mkdir ( $ path , 0775 , true ) ; } $ path_to_htaccess = $ path . '.htaccess' ; if ( ! file_exists ( $ path_to_htaccess ) ) { // Restrict access \ Pressbooks \ Utility \ put_contents ( $ path_to_htaccess , "deny from all\n" ) ; } return $ path ; }
Get the fullpath to the Covers folder.
Create if not there. Create .htaccess protection if missing.

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