WP_Filesystem_ftpsockets::chdir()publicWP 2.5.0

Changes current directory.

Method of the class: WP_Filesystem_ftpsockets{}

No Hooks.

Return

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

Usage

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

Changelog

Since 2.5.0 Introduced.

WP_Filesystem_ftpsockets::chdir() code WP 6.5.2

public function chdir( $dir ) {
	return $this->ftp->chdir( $dir );
}