public function size($remote_file)
    {
        $size = @ftp_size($this->connection, $remote_file);
        if ($size && $size != -1) {
            return $size;
        } else {
            throw new \Exception("Could not get remote file size: " . $path);
        }
    }