Gets the current working directory.
Source
public function cwd() {
if ( ! $this->sftp_link ) {
return false;
}
$cwd = ssh2_sftp_realpath( $this->sftp_link, '.' );
if ( ! is_string( $cwd ) ) {
return false;
}
return trailingslashit( trim( $cwd ) );
}
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.