mkdir recursively:

    if (!is_dir('public:///' . $user->name . '/export')) {
      drupal_mkdir('public:///' . $user->name . '/export', NULL, TRUE, NULL);
    }

See https://api.drupal.org/api/drupal/includes%21file.inc/function/drupal_mkdir/7