mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
webdav: add Client.Mkdir
This commit is contained in:
parent
e9e1f102de
commit
a5d750f1e1
10
client.go
10
client.go
@ -202,3 +202,13 @@ func (c *Client) RemoveAll(name string) error {
|
|||||||
_, err = c.ic.Do(req)
|
_, err = c.ic.Do(req)
|
||||||
return err
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user