Well, i know the del mechanism & the FAT internals well (had lots of fun with it under dos years ago, TASM & MASM era...), but what i wanted to say with my post: even when there are deleted files on the card / in the folder, listdir don't show them on my cams, neither with msl's script nor with own test scripts !
The test scenario, done with my SD400 (VxWorks) on a 32 MB card, card reader, Win XP SP3 & windows explorer):
- added
tlistdir(tdir0,true)
tlistdir("A/FE50TST",true)
-- NOTE invalid operations frequently leave the filesystem in a corrupt state
in your original llibtst.lua,
- created a folder FE50TST, copied some files there, then deleted them except for 2 files...
-> the result: in the log file i don't get the deleted files:
os.listdir("A/FE50TST",true): OK PASS
{
1="."
2=".."
3="DISKBOOT.BIN"
4="VERS.REQ"
}
I also deleted a file with the file browser, no changes...