WP_Filesystem_SSH2::exists( string $file )

Checks if a file or directory exists.

Parameters Parameters


(string) (Required) Path to file or directory.

Top ↑

Return Return

(bool) Whether $file exists or not.

Top ↑

Source Source

File: wp-admin/includes/class-wp-filesystem-ssh2.php

	public function exists( $file ) {
		return file_exists( $this->sftp_path( $file ) );

Top ↑

Changelog Changelog

Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

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