FAT32 volume label?

The code I posted in SdFat long file name length limit is 255 chars including extension - Storage - Arduino Forum is derived from code written by the designer of the SD library, and it goes through SD card directory blocks in the manner you need to do it. And it's written in C, so your lack of C++ expertise won't be an issue.