src/Valkyrja/Filesystem/FlyFilesystem.php
public function size(string $path): ? int
    {
        $size = $this->flySystem->getSize($path);

        return false !== $size ? $size : null;
    }
public function size(string $path): ? int
    {
        $size = $this->flySystem->getSize($path);

        return false !== $size ? $size : null;
    }
Get a file's size.

@param string $path The path

@return int|null The size in bytes or null on failure