As I was particularly annoyed by some vfsErrFileGeneric error while enumerating files in the root folder of a card, I finished digging into FAT structure and root directory structure. It seems that when you use more than 25 LFN entries in one directory (this number seems quite exact: one less and it is OK, there is also about 10 short entries), VFS goes bad and returns the vfsErrFileGeneric error.
I think I remember that this was a restriction of the FAT system itself, and doesn't apply to files which aren't in the root. Use directories!
-David Fedor PalmSource, Inc.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
