http://mbed.org/users/mbed_official/code/FATFileSystem/#b6669c987c8e