WP_Filesystem_FTPext::chdir() WordPress Method
The WP_Filesystem_FTPext::chdir() method changes the current working directory on the FTP server.
WP_Filesystem_FTPext::chdir( string $dir ) #
Changes current directory.
Contents
Parameters
- $dir
(string)(Required)The new current directory.
Return
(bool) True on success, false on failure.
Source
File: wp-admin/includes/class-wp-filesystem-ftpext.php
public function chdir( $dir ) { return @ftp_chdir( $this->link, $dir ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |