S35390A_SD-MMC_FatEngine Help - change dir and list files
I'm moving from Kye's FAT 2.0 to the new S35390A_SD-MMC_FatEngine. I invoke the changeDirectory method then listEntries("N") but keep getting the root directory listing. What is the proper syntax to change directory then list the files in the current working directory?
pst.str(string(13, "CD Style> "))
pst.str(SDCard.changeDirectory(string("style")))
pst.char(13)
repeat 10
pst.str(string("SDCard.listEntries(N)> "))
pst.str(SDCard.listEntries("N"))
pst.char(13)


Comments
W = Wrap
N = Next
pst.str(string(13, "CD Style> ")) pst.str(SDCard.changeDirectory(string("style"))) pst.char(13) pst.str(SDCard.listEntries("W")) repeat 10 pst.str(string("SDCard.listEntries(N)> ")) pst.str(SDCard.listEntries("N")) pst.char(13)Before you couldn't do that because the file system pointers would reset themselves after executing a different file system function.
I think it's a small price to pay for more functionality.
Thanks,