Gets the current working directory.
Source
public function cwd() {
$cwd = ssh2_sftp_realpath( $this->sftp_link, '.' );
if ( $cwd ) {
$cwd = trailingslashit( trim( $cwd ) );
}
return $cwd;
}
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |
CARVIEW |
Gets the current working directory.
public function cwd() {
$cwd = ssh2_sftp_realpath( $this->sftp_link, '.' );
if ( $cwd ) {
$cwd = trailingslashit( trim( $cwd ) );
}
return $cwd;
}
Uses | Description |
---|---|
trailingslashit()wp-includes/formatting.php | Appends a trailing slash. |
Version | Description |
---|---|
2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.