Home > PHP > Function > SSH2 > ssh2_sftp_stat()

ssh2_sftp_stat()

ssh2_sftp_stat - Stat a file on a remote filesystem

Syntax

array ssh2_sftp_stat (resource $sftp, string $path)

Arguments

  • sftp - An SSH2 SFTP resource opened by ssh2_sftp().
  • path

Description

Stats a file on the remote filesystem following any symbolic links.

Version

PHP PECL ssh2 >= 0.9.0

Return value

See the documentation for stat() for details on the values which may be returned.