/**
 * Gets file size in bytes.
 *
 * @return int Returns the size of the file in bytes.
 */
public function size(): int

Examples

$result = $filesystem->file('/foo/1.txt')->size();

Getting Started

Methods

Filesystem
File
Directory