func (h *fshandler) Mkdir(sessionID [16]byte, request *mkdir.Request) (xrdproto.Marshaler, xrdproto.ResponseStatus) {
	mkdirFunc := os.Mkdir
	if request.Options&mkdir.OptionsMakePath != 0 {
		mkdirFunc = os.MkdirAll
	}

	if err := mkdirFunc(path.Join(h.basePath, request.Path), os.FileMode(request.Mode)); err != nil {
		return xrdproto.ServerError{
			Code:    xrdproto.IOError,
			Message: fmt.Sprintf("An IO error occurred: %v", err),
		}, xrdproto.Error
	}
	return nil, xrdproto.Ok
}
// Mkdir implements server.Handler.Mkdir.
Mkdir implements server.Handler.Mkdir.
// Mkdir implements server . Handler . Mkdir .
func (h *fshandler) Mkdir(sessionID [16]byte, request *mkdir.Request) (xrdproto.Marshaler, xrdproto.ResponseStatus) {
	mkdirFunc := os.Mkdir
	if request.Options&mkdir.OptionsMakePath != 0 {
		mkdirFunc = os.MkdirAll
	}
	if err := mkdirFunc(path.Join(h.basePath, request.Path), os.FileMode(request.Mode)); err != nil {
		return xrdproto.ServerError{
			Code:    xrdproto.IOError,
			Message: fmt.Sprintf("An IO error occurred: %v", err),
		}, xrdproto.Error
	}
	return nil, xrdproto.Ok
}
func ( h * fshandler ) Mkdir ( sessionID [ 16 ] byte , request * mkdir . Request ) ( xrdproto . Marshaler , xrdproto . ResponseStatus ) { mkdirFunc := os . Mkdir if request . Options & mkdir . OptionsMakePath != 0 { mkdirFunc = os . MkdirAll } if err := mkdirFunc ( path . Join ( h . basePath , request . Path ) , os . FileMode ( request . Mode ) ) ; err != nil { return xrdproto . ServerError { Code : xrdproto . IOError , Message : fmt . Sprintf ( " " , err ) , } , xrdproto . Error } return nil , xrdproto . Ok }
Mkdir implements server.Handler.Mkdir.
Mkdir implements server . Handler . Mkdir .