GC_Filesystem_ftpsockets::cwd()

最后更新于:2021-11-27 18:59:14

GC_Filesystem_ftpsockets::cwd()

Gets the current working directory.

响应

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

源文件

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

	public function cwd() {
		$cwd = $this->ftp->pwd();

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

		return $cwd;
	}