WP_Filesystem_ftpsockets::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_ftpsockets::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-ftpsockets.php
Lines:

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

 View on GitHub View on Trac