uSD read full file names
threadz
Posts: 56
Is it possible to read the full names of files on a micro SD card rather than the 8.3 names? If not, does anyone know where I would begin reading up on file FAT32 file systems to understand how that info is stored so I can implement it myself?
Comments
You just need to fill in the block driver code.
This has been haunting me for a while, and the feature may well find its way into PropWare someday. I have lots of documentation on FAT16/32 filesystems from a course I took - I've uploaded it here: http://david.zemon.name/downloads/fatDocs.zip
I also opened an issue for PropWare for long filenames but set the milestone to "someday" :P
There is no need to generate an LFN on an embedded system although it can be convenient to read one that was put there by a PC, but if the file name can be up to 255 characters then that means you need to allocate that memory for the search string at least. On a PC with Gigabytes of memory that is never a problem, on a Prop with 32K RAM for both code and data that is a big drain on resources. Think about whether you really need LFN, perhaps you do, but I know I can get by very nicely without it and if MS file system would allow plug-ins then it would be very easy to come up with an open LFN scheme that could be read by any PC, much like codecs allow various formats, but this would be very much to the detriment of MS's One World O/S domination scheme (and yearly license).
Easy to read with Kyes Fat_engine or FSRW. Not so easy to write because you might need to shuffle around existing entries to get the needed space behind your existing directory entry.
As Peter says it is not the smartest implementation.
I've played around with TAR as a file system in a file on top of FAT32. Way easier to handle with the Prop.. But - alas - it is on ice like the RAISD system, Editor18 and ISAM.
Sad!
Mike