Well intermittent fun here has a nearly working Verify in makefiles and just added a Menu.
Code:
Menu Options:
t - Test Files Small
v - Verify Files
l - List files on disk
R - Restart Teensy
So of course then back to moving files around - with unGood results:
That was from copy of work files from SD using Teensy MTP onto a PC folder to compare.
It died partway through and shows 63KB of file data substituted for various other files and lots of others. Here's the top screen of code compare.
Note: the folder under "This PC\Teensy\MakeFiles 2204\
TESTerr\D0.28" has expected and created known errors I made for testing, the rest shown are from copy errors MTP>PC so far.
Brought the SD card to PC to get the actual files to compare and put the faulty folder on the SD
Bringing up the SD card on MTP Teensy a verify shows this - still some presentation hitches perhaps - and not 1 to one verified it caught everything.
But have not found a way to export a printed LIST from CodeCompare and this sort of looks like one from TyComm:
Code:
D0.20 /
DONE RESULTS GOOD HERE 20 Files(s) with 20 files of Size 81920 Bytes #2
D0.40 /
DONE RESULTS GOOD HERE 40 Files(s) with 40 files of Size 4997120 Bytes #2
D0.60 /
DONE RESULTS GOOD HERE 60 Files(s) with 60 files of Size 3870720 Bytes #2
D0.30 /
DONE RESULTS GOOD HERE 30 Files(s) with 30 files of Size 952320 Bytes #2
ManyD10 /no count DIR
D0.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D1.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D2.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D3.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D4.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D5.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D6.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D7.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D8.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D9.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #2
TEST /no count DIR
D0.28 /
DONE RESULTS GOOD HERE 28 Files(s) with 28 files of Size 14238 Bytes #2
D0.28 /
DONE RESULTS GOOD HERE 28 Files(s) with 28 files of Size 14238 Bytes #2
D0.25 /
DONE RESULTS GOOD HERE 25 Files(s) with 25 files of Size 12800 Bytes #2
Huge /no count DIR
D0.10 /
DONE RESULTS GOOD HERE 10 Files(s) with 10 files of Size 4000000 Bytes #2
FILE mtpindex.dat
°mtpindex.dat
TESTerr /no count DIR
D0.28 /
496.txt XXXX File Size MISMATCH 495:
498.txt XXXX File Size MISMATCH 499:
Ver Fi:509.txt 509zD. 215x 9846E_zD. 215x 9846F~***********TEST/D0.28/508.txt fid=215 bid=9846e N=508.txt| zD. 215x 9846F~***********TEST/D0.28/508.txt
XXXX2 In file Name MISMATCH Size : 508
DONE RESULTS BAD HERE XXX 'b XX 2 EXTRA FILE(S)
3 File Error(s)
with 30 files of Size 13716 Bytes #2
System Volume Information /no count DIR
FILE WPSettings.dat
°WPSettings.dat FILE IndexerVolumeGuid
°IndexerVolumeGuid
Jan22 /no count DIR
D0.20 /
4096_1.txt XXXX File Size MISMATCH 64512:
4096_10.txt XXXX File Size MISMATCH 64512:
4096_11.txt XXXX File Size MISMATCH 64512:
4096_12.txt XXXX File Size MISMATCH 64512:
4096_13.txt XXXX File Size MISMATCH 64512:
4096_14.txt XXXX File Size MISMATCH 64512:
4096_15.txt XXXX File Size MISMATCH 64512:
4096_16.txt XXXX File Size MISMATCH 64512:
4096_17.txt XXXX File Size MISMATCH 64512:
4096_18.txt XXXX File Size MISMATCH 64512:
4096_19.txt XXXX File Size MISMATCH 64512:
4096_2.txt XXXX File Size MISMATCH 64512:
4096_20.txt XXXX File Size MISMATCH 64512:
4096_3.txt XXXX File Size MISMATCH 64512:
4096_4.txt XXXX File Size MISMATCH 64512:
4096_5.txt XXXX File Size MISMATCH 64512:
4096_6.txt XXXX File Size MISMATCH 64512:
4096_7.txt XXXX File Size MISMATCH 64512:
4096_8.txt XXXX File Size MISMATCH 64512:
4096_9.txt XXXX File Size MISMATCH 64512:
D0.25 /
500.txt XXXX File Size MISMATCH 64512:
501.txt XXXX File Size MISMATCH 64512:
502.txt XXXX File Size MISMATCH 64512:
503.txt XXXX File Size MISMATCH 64512:
504.txt XXXX File Size MISMATCH 64512:
505.txt XXXX File Size MISMATCH 64512:
Huge /no count DIR
D0.10 /
DONE RESULTS GOOD HERE 10 Files(s) with 10 files of Size 4000000 Bytes #2
ManyD10 /no count DIR
D0.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D1.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D2.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D3.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D4.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D5.5 /
DONE RESULTS GOOD HERE 5 Files(s) with 5 files of Size 7620 Bytes #1
D6.5 /
2548.txt XXXX File Size MISMATCH 510:
DONE RESULTS BAD HERE XXX 'a XX 1 File Error(s)
with 5 files of Size 5582 Bytes #1
D7.5 /
1012.txt XXXX File Size MISMATCH 513:
1524.txt XXXX File Size MISMATCH 514:
2036.txt XXXX File Size MISMATCH 515:
2548.txt XXXX File Size MISMATCH 516:
500.txt XXXX File Size MISMATCH 512:
D8.5 /
1012.txt XXXX File Size MISMATCH 519:
1524.txt XXXX File Size MISMATCH 520:
2036.txt XXXX File Size MISMATCH 521:
2548.txt XXXX File Size MISMATCH 4096:
500.txt XXXX File Size MISMATCH 518:
D9.5 /
1012.txt XXXX File Size MISMATCH 4096:
1524.txt XXXX File Size MISMATCH 4096:
2036.txt XXXX File Size MISMATCH 4096:
2548.txt XXXX File Size MISMATCH 4096:
500.txt XXXX File Size MISMATCH 4096:
TEST /no count DIR
D0.28 /
495.txt XXXX File Size MISMATCH 4096:
496.txt XXXX File Size MISMATCH 4096:
497.txt XXXX File Size MISMATCH 4096:
498.txt XXXX File Size MISMATCH 4096:
499.txt XXXX File Size MISMATCH 4096:
500.txt XXXX File Size MISMATCH 4096:
501.txt XXXX File Size MISMATCH 4096:
502.txt XXXX File Size MISMATCH 4096:
503.txt XXXX File Size MISMATCH 4096:
504.txt XXXX File Size MISMATCH 4096:
505.txt XXXX File Size MISMATCH 4096:
506.txt XXXX File Size MISMATCH 4096:
507.txt XXXX File Size MISMATCH 500:
508.txt XXXX File Size MISMATCH 501:
509.txt XXXX File Size MISMATCH 502:
510.txt XXXX File Size MISMATCH 503:
511.txt XXXX File Size MISMATCH 504:
512.txt XXXX File Size MISMATCH 505:
513.txt XXXX File Size MISMATCH 506:
514.txt XXXX File Size MISMATCH 507:
515.txt XXXX File Size MISMATCH 508:
516.txt XXXX File Size MISMATCH 509:
517.txt XXXX File Size MISMATCH 510:
518.txt XXXX File Size MISMATCH 511:
519.txt XXXX File Size MISMATCH 512:
520.txt XXXX File Size MISMATCH 513:
521.txt XXXX File Size MISMATCH 514:
522.txt XXXX File Size MISMATCH 515:
TESTerr /no count DIR
D0.28 /
495.txt XXXX File Size MISMATCH 517:
496.txt XXXX File Size MISMATCH 518:
497.txt XXXX File Size MISMATCH 519:
498.txt XXXX File Size MISMATCH 520:
499.txt XXXX File Size MISMATCH 521:
500.txt XXXX File Size MISMATCH 522:
501.txt XXXX File Size MISMATCH 523:
502.txt XXXX File Size MISMATCH 524:
503.txt XXXX File Size MISMATCH 495:
504.txt XXXX File Size MISMATCH 496:
505.txt XXXX File Size MISMATCH 497:
506.txt XXXX File Size MISMATCH 498:
507.txt XXXX File Size MISMATCH 499:
508.txt XXXX File Size MISMATCH 500:
509.txt XXXX File Size MISMATCH 501:
510.txt XXXX File Size MISMATCH 64512:
511.txt XXXX File Size MISMATCH 64512:
512.txt XXXX File Size MISMATCH 64512:
513.txt XXXX File Size MISMATCH 64512:
514.txt XXXX File Size MISMATCH 64512:
515.txt XXXX File Size MISMATCH 64512:
516.txt XXXX File Size MISMATCH 64512:
517.txt XXXX File Size MISMATCH 64512:
518.txt XXXX File Size MISMATCH 64512:
519.txt XXXX File Size MISMATCH 64512:
520.txt XXXX File Size MISMATCH 64512:
521.txt XXXX File Size MISMATCH 64512:
Total 465 files of Size 20630264 Bytes
Bytes Used: 26099712, Bytes Total:31889817600
One other NOTE: Since switching to MTP+Serial the Teensy no longer 'AutoPlay' opens the folder? Not sure if that is due to the change or other. But AutoPlay settings has three "Teensy' entries all marked: Open folder to view
Updated github for 2204:
Defragster/T4LockBeta/tree/main/MakeFiles
> the Block count is now 7 HEX chars so it won't digest prior files that allowed for only 5.
> though not sure it can count nearly that high and work ... 4GB total. Some smaller LARGE files test gave a fail it seemed.
> Check the Menu it can have entries for various file sets with edited entries to pass diff values for 'ii' here: void makeSome( int ii )
<edit> I hadn't gotten to looking at the failed CodeCompare file content - here is one example showing this file partial path ".5/D8.5/D9.5/500.txt" is number 196 in creation order.
It should be a 500 byte file but instead it was replaced by file #3 from "/D0.20/4096_3.txt" which is a 4096 byte file.
> Note when the file Size was checked and seen not to match the files name - it was not sent for further verification that would have shown the error in the file number - and the block ID HEX values, or the end string.
<edit2>: Turing on File Preview Pane and going to: This PC\Teensy\MakeFiles 2204\ManyD10\D0.5\D1.5\D2.5\D3.5\D4.5\D5.5\D6.5\D7.5\D8.5\D9.5
Shows this accurate single read of file above that was corrupted on copy:
This directory shows lower middle of image #2 above and all files in this D9.5 folder were copied at 4096 bytes instead of the sizes shown in the file name.