WP_Filesystem_SSH2::chdir( string $dir ): bool

In this article

Changes current directory.

Parameters

$dirstringrequired
The new current directory.

Return

bool True on success, false on failure.

Source

public function chdir( $dir ) {
	return $this->run_command( 'cd ' . $dir, true );
}

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

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