https://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#e2ab678eb692