WP_Filesystem_FTPext::cwd()
Gets the current working directory.
Метод класса: WP_Filesystem_FTPext{}
Хуков нет.
Возвращает
Строку|false
. The current working directory on success, false on failure.
Использование
$WP_Filesystem_FTPext = new WP_Filesystem_FTPext(); $WP_Filesystem_FTPext->cwd();
Список изменений
С версии 2.5.0 | Введена. |
Код WP_Filesystem_FTPext::cwd() WP Filesystem FTPext::cwd WP 6.6.2
public function cwd() { $cwd = ftp_pwd( $this->link ); if ( $cwd ) { $cwd = trailingslashit( $cwd ); } return $cwd; }