GC_Filesystem_ftpsockets::is_dir()

最后更新于:2021-11-27 19:19:22

GC_Filesystem_ftpsockets::is_dir( string$path)

Checks if resource is a directory.

参数

$path

(string) (Required) Directory path.

响应

(bool) Whether $path is a directory.

源文件

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

	public function is_dir( $path ) {
		$cwd = $this->cwd();

		if ( $this->chdir( $path ) ) {
			$this->chdir( $cwd );
			return true;
		}

		return false;
	}