GC_Filesystem_SSH2::exists()

最后更新于:2021-11-27 20:13:13

GC_Filesystem_SSH2::exists( string$file)

Checks if a file or directory exists.

参数

$file

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

响应

(bool) Whether $file exists or not.

源文件

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

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