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

Examples

$size = $filesystem->directory('/foo')->size();

Getting Started

Methods

Filesystem
File
Directory