WP_Filesystem_Base::find_base_dir( string $base = ‘.’, bool $verbose = false ): string

This method has been deprecated. Use WP_Filesystem_Base::abspath() instead.

Locates a folder on the remote filesystem.

Description

See also

Parameters

$basestringoptional
The folder to start searching from. Default '.'.

Default:'.'

$verbosebooloptional
True to display debug information.

Default:false

Return

string The location of the remote path.

Source

public function find_base_dir( $base = '.', $verbose = false ) {
	_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
	$this->verbose = $verbose;
	return $this->abspath();
}

Changelog

VersionDescription
2.7.0use WP_Filesystem_Base::abspath() or WP_Filesystem*Base::wp**_dir() instead.
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.