WP_Filesystem_Base::find_base_dir()publicWP 2.5.0

Deprecated from version 2.7.0. It is no longer supported and can be removed in future releases. Use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead.

Locates a folder on the remote filesystem.

Method of the class: WP_Filesystem_Base{}

No Hooks.

Return

String. The location of the remote path.

Usage

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->find_base_dir( $base, $verbose );
$base(string)
The folder to start searching from.
Default: '.'
$verbose(true|false)
True to display debug information.
Default: false

Notes

Changelog

Since 2.5.0 Introduced.
Deprecated since 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead.

WP_Filesystem_Base::find_base_dir() code WP 6.4.3

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();
}