WP_Filesystem_SSH2::exists()
Checks if a file or directory exists.
{} Это метод класса: WP_Filesystem_SSH2{}
Хуков нет.
Возвращает
true|false
. Whether $file exists or not.
Использование
$WP_Filesystem_SSH2 = new WP_Filesystem_SSH2(); $WP_Filesystem_SSH2->exists( $file );
- $file(строка) (обязательный)
- Path to file or directory.
Список изменений
С версии 2.7.0 | Введена. |
Код WP_Filesystem_SSH2::exists() WP Filesystem SSH2::exists WP 6.0
public function exists( $file ) { return file_exists( $this->sftp_path( $file ) ); }