func (folder *Folder) Update(body []byte) (FolderResp, error) {
	body = patchMetadataType(body, "SP.Folder")
	client := NewHTTPClient(folder.client)
	return client.Update(folder.endpoint, bytes.NewBuffer(body), folder.config)
}
Update updates Folder's metadata with properties provided in `body` parameter
where `body` is byte array representation of JSON string payload relevant to SP.Folder object
package api
import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/url"
	"strings"
	"time"
	"github.com/koltyakov/gosip"
)
type Folder struct {
	client    *gosip.SPClient
	config    *RequestConfig
	endpoint  string
	modifiers *ODataMods
}
type FolderInfo struct {
	Exists            bool      `json:"Exists"`
	IsWOPIEnabled     bool      `json:"IsWOPIEnabled"`
	ItemCount         int       `json:"ItemCount"`
	Name              string    `json:"Name"`
	ProgID            string    `json:"ProgID"`
	ServerRelativeURL string    `json:"ServerRelativeUrl"`
	TimeCreated       time.Time `json:"TimeCreated"`
	TimeLastModified  time.Time `json:"TimeLastModified"`
	UniqueID          string    `json:"UniqueId"`
	WelcomePage       string    `json:"WelcomePage"`
}
type FolderResp []byte
func NewFolder(client *gosip.SPClient, endpoint string, config *RequestConfig) *Folder {
	return &Folder{
		client:    client,
		endpoint:  endpoint,
		config:    config,
		modifiers: NewODataMods(),
	}
}
func (folder *Folder) ToURL() string {
	return toURL(folder.endpoint, folder.modifiers)
}
func (folder *Folder) Get() (FolderResp, error) {
	client := NewHTTPClient(folder.client)
	return client.Get(folder.ToURL(), folder.config)
}