Added mkdir

this is a hack from copying upload() code. Maybe someone will find this useful