http://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#b3b3370574cf