add Rename and Copy

This commit is contained in:
Christoph Polcin
2014-10-24 14:08:42 +02:00
parent e02560544b
commit 47076d6487
3 changed files with 51 additions and 0 deletions

View File

@@ -176,6 +176,14 @@ func (c *Client) MkdirAll(path string, _ os.FileMode) error {
return newPathError("MkdirAll", path, status)
}
func (c *Client) Rename(oldpath string, newpath string, overwrite bool) error {
return c.copymove("MOVE", oldpath, newpath, overwrite)
}
func (c *Client) Copy(oldpath string, newpath string, overwrite bool) error {
return c.copymove("COPY", oldpath, newpath, overwrite)
}
func (c *Client) Read(path string) {
fmt.Println("Read " + path)
}