os.Path.size

Returns the size of a file.

Syntax

os.Path.size(
   path STRING)
  RETURNS BIGINT
  1. path is the path to a file.

Usage

The function returns the size in bytes for the specified file.

Large files sizes ( > 2GB ) are supported.