WP_Filesystem_SSH2::exists

Advertisement

Summery Summery

Checks if a file or directory exists.

Syntax Syntax

WP_Filesystem_SSH2::exists( string $file )

Parameters Parameters

$file

(Required) Path to file or directory.

Return Return

(bool) Whether $file exists or not.

Source Source

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

		if ( 'f' === $type || $this->is_file( $file ) ) {
			return ssh2_sftp_unlink( $this->sftp_link, $file );
		}

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply