WP_Filesystem_SSH2::chdir() WordPress Method
The WP_Filesystem_SSH2::chdir() method is used to change the current working directory on the remote server.
WP_Filesystem_SSH2::chdir( string $dir ) #
Changes current directory.
Parameters
- $dir
(string)(Required)The new current directory.
Return
(bool) True on success, false on failure.
Source
File: wp-admin/includes/class-wp-filesystem-ssh2.php
public function chdir( $dir ) { return $this->run_command( 'cd ' . $dir, true ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |