func (fs *FileSystem) SetTimes(path Path, accesstime int64, modificationtime int64) (bool, error) {
	if path.Name == "" {
		return false, fmt.Errorf("SetTimes() - Path cannot be empty.")
	}
	params := map[string]string{
		"op":               OP_SETTIMES,
		"accesstime":       strconv.FormatInt(int64(accesstime), 10),
		"modificationtime": strconv.FormatInt(int64(modificationtime), 10)}
	u, err := buildRequestUrl(fs.Config, &path, &params)
	if err != nil {
		return false, err
	}
	req, _ := http.NewRequest("PUT", u.String(), nil)
	rsp, err := fs.client.Do(req)
	if err != nil {
		return false, err
	}
	if rsp.StatusCode != http.StatusOK {
		return false, fmt.Errorf("SetTimes() - server returned unexpected value, resource times not modified.")
	}
	return true, nil
}
Sets access or modification time for specified resource
See HDFS FileSystem.setTimes
package gowfs
import "fmt"
import "os"
import "net/http"
import "strconv"
func (fs *FileSystem) Rename(source Path, destination Path) (bool, error) {
	if source.Name == "" || destination.Name == "" {
		return false, fmt.Errorf("Rename() - params source and destination cannot be empty.")
	}
	params := map[string]string{"op": OP_RENAME, "destination": destination.Name}
	u, err := buildRequestUrl(fs.Config, &source, &params)
	if err != nil {
		return false, err
	}
	req, _ := http.NewRequest("PUT", u.String(), nil)
	hdfsData, err := requestHdfsData(fs.client, *req)
	if err != nil {
		return false, err
	}
	return hdfsData.Boolean, nil
}
func (fs *FileSystem) Delete(path Path, recursive bool) (bool, error) {
	if path.Name == "" {
		return false, fmt.Errorf("Delete() - param path cannot be empty.")
	}
	params := map[string]string{
		"op":        OP_DELETE,
		"recursive": strconv.FormatBool(recursive)}
	u, err := buildRequestUrl(fs.Config, &path, &params)
	if err != nil {
		return false, err
	}
	req, _ := http.NewRequest("DELETE", u.String(), nil)
	hdfsData, err := requestHdfsData(fs.client, *req)
	if err != nil {
		return false, err
	}
	return hdfsData.Boolean, nil
}
func (fs *FileSystem) SetPermission(path Path, permission os.FileMode) (bool, error) {
	if path.Name == "" {
		return false, fmt.Errorf("SetPermission() - param path cannot be empty.")
	}
	if permission < 0 || permission > 1777 {
		return false, fmt.Errorf("SetPermission() - permission is invalid.")
	}
	params := map[string]string{
		"op":         OP_SETPERMISSION,
		"permission": strconv.FormatInt(int64(permission), 8)}
	u, err := buildRequestUrl(fs.Config, &path, &params)
	if err != nil {
		return false, err
	}
	req, _ := http.NewRequest("PUT", u.String(), nil)
	rsp, err := fs.client.Do(req)
	if err != nil {
		return false, err
	}
	if rsp.StatusCode != http.StatusOK {
		return false, fmt.Errorf("SetPermission() - server returned unexpected value, permission not set.")
	}
	return true, nil
}
func (fs *FileSystem) SetOwner(path Path, owner string, group string) (bool, error) {
	if path.Name == "" {
		return false, fmt.Errorf("SetOwner() - param path cannot be empty.")
	}
	params := map[string]string{
		"op":    OP_SETOWNER,
		"owner": owner,
		"group": group}
	u, err := buildRequestUrl(fs.Config, &path, &params)
	if err != nil {
		return false, err
	}
	req, _ := http.NewRequest("PUT", u.String(), nil)
	rsp, err := fs.client.Do(req)
	if err != nil {
		return false, err
	}
	if rsp.StatusCode != http.StatusOK {
		return false, fmt.Errorf("SetOwner() - server returned unexpected value, owner not set.")
	}
	return true, nil
}
func (fs *FileSystem) SetReplication(path Path, replication uint16) (bool, error) {
	if path.Name == "" {
		return false, fmt.Errorf("SetReplication() - param path cannot be empty.")
	}
	if replication <= 0 {
		return false, fmt.Errorf("SetReplication() - replication is invalid.")
	}
	params := map[string]string{
		"op":          OP_SETREPLICATION,
		"replication": strconv.FormatInt(int64(replication), 8)}
	u, err := buildRequestUrl(fs.Config, &path, &params)
	if err != nil {
		return false, err
	}
	req, _ := http.NewRequest("PUT", u.String(), nil)
	hdfsData, err := requestHdfsData(fs.client, *req)
	if err != nil {
		return false, err
	}
	return hdfsData.Boolean, nil
}