GC_Filesystem_SSH2::cwd()

最后更新于:2021-11-27 20:06:48

GC_Filesystem_SSH2::cwd()

Gets the current working directory.

响应

(string|false) The current working directory on success, false on failure.

源文件

文件: gc-admin/includes/class-gc-filesystem-ssh2.php

	public function cwd() {
		$cwd = ssh2_sftp_realpath( $this->sftp_link, '.' );

		if ( $cwd ) {
			$cwd = trailingslashit( trim( $cwd ) );
		}

		return $cwd;
	}