WP_Filesystem_SSH2::size() – Gets the file size (in bytes).

You appear to be a bot. Output may be restricted

Description

Gets the file size (in bytes).

Usage

$int|false = WP_Filesystem_SSH2::size( $file );

Parameters

$file
( string ) required – Path to file.

Returns

int|false Size of the file in bytes on success, false on failure.

Source

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

1 to 3 of 3
  public function size( $file ) {
    return filesize( $this->WP_Filesystem_SSH2::sftp_path( $file ) );
  }
 

 View on GitHub View on Trac