webdav: add Client.Mkdir

This commit is contained in:
Simon Ser 2020-01-21 22:06:47 +01:00
parent e9e1f102de
commit a5d750f1e1
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -202,3 +202,13 @@ func (c *Client) RemoveAll(name string) error {
_, err = c.ic.Do(req)
return err
}
func (c *Client) Mkdir(name string) error {
req, err := c.ic.NewRequest("MKCOL", name, nil)
if err != nil {
return err
}
_, err = c.ic.Do(req)
return err
}