WP_Filesystem_ftpsockets::chdir() WordPress Method
The WP_Filesystem_ftpsockets::chdir() function changes the current working directory on the FTP server.
WP_Filesystem_ftpsockets::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-ftpsockets.php
public function chdir( $dir ) { return $this->ftp->chdir( $dir ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |