AP_Bootloader to write a file on SD Card

Hi,

Is there way in AP_Bootloader to read/write a file on SD Card.
Is there any demo code in the Ardupilot git which i can refer to ?

Will this code work modules/ChibiOS/testhal/STM32/multi/SDMMC-FATFS/main.c