WP_Filesystem_SSH2::is_dir( string $path ): bool

In this article

Checks if resource is a directory.

Parameters

$pathstringrequired
Directory path.

Return

bool Whether $path is a directory.

Source

public function is_dir( $path ) {
	return is_dir( $this->sftp_path( $path ) );
}

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.