func (c *Client) MkdirAll(dirname string, perm os.FileMode) error {
	return c.mkdir(dirname, perm, true)
}
MkdirAll creates a directory for dirname, along with any necessary parents,
and returns nil, or else returns an error. The permission bits perm are used
for all directories that MkdirAll creates. If dirname is already a directory,
MkdirAll does nothing and returns nil.
package hdfs
import (
	"os"
	"path"
	hdfs "github.com/colinmarc/hdfs/protocol/hadoop_hdfs"
	"github.com/colinmarc/hdfs/rpc"
	"github.com/golang/protobuf/proto"
)
func (c *Client) Mkdir(dirname string, perm os.FileMode) error {
	return c.mkdir(dirname, perm, false)
}