Add mkdir function in the API