WP_Filesystem_FTPext::chdir()publicWP 2.5.0

Changes current directory.

Method of the class: WP_Filesystem_FTPext{}

No Hooks.

Return

true|false. True on success, false on failure.

Usage

$WP_Filesystem_FTPext = new WP_Filesystem_FTPext();
$WP_Filesystem_FTPext->chdir( $dir );
$dir(string) (required)
The new current directory.

Changelog

Since 2.5.0 Introduced.

WP_Filesystem_FTPext::chdir() code WP 6.5.4

public function chdir( $dir ) {
	return @ftp_chdir( $this->link, $dir );
}