Switch folder creation to API