WP_Filesystem_SSH2::exists( string $path ): bool

In this article

Checks if a file or directory exists.

Parameters

$pathstringrequired
Path to file or directory.

Return

bool Whether $path exists or not.

Source

public function exists( $path ) {
	return file_exists( $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.