Gets the current working directory.
Source
public function cwd() {
$cwd = $this->ftp->pwd();
if ( $cwd ) {
$cwd = trailingslashit( $cwd );
}
return $cwd;
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
CARVIEW |
Gets the current working directory.
public function cwd() {
$cwd = $this->ftp->pwd();
if ( $cwd ) {
$cwd = trailingslashit( $cwd );
}
return $cwd;
}
Uses | Description |
---|---|
trailingslashit()wp-includes/formatting.php | Appends a trailing slash. |
Used by | Description |
---|---|
WP_Filesystem_ftpsockets::is_dir()wp-admin/includes/class-wp-filesystem-ftpsockets.php | Checks if resource is a directory. |
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.