public function getSize(string $remoteFile)
    {
        $size = @ftp_size($this->ftp, $remoteFile);

        if ($size == -1) {
            throw new Exception("Cannot get file size");
        }

        return $size;
    }