GC_Filesystem_FTPext::cwd()
最后更新于:2021-11-27 18:45:54
GC_Filesystem_FTPext::cwd()Gets the current working directory.
响应
(string|false) The current working directory on success, false on failure.
源文件
文件: gc-admin/includes/class-gc-filesystem-ftpext.php
public function cwd() {
$cwd = ftp_pwd( $this->link );
if ( $cwd ) {
$cwd = trailingslashit( $cwd );
}
return $cwd;
}