defragster
Senior Member+
Deeper test case: beware intense USB spew
Here's an updated MakeFiles.ino with latest "Mine" folder, for use after the simple case is working.
It holds 3 the three '1,2,3' folders each with 1024 files named as sized with 1 byte increment from 400 bytes to 1423 bytes.
Those created with : MakeDataFiles( szStart[1], 1024, 400, 1 ); // folder name, # files, start size, inc in bytes to next file
MakeData() does the original three files ( now 244,500,756 in size )
Commented MakeMore() re-uses those first three '1,2,3' dirs and goes a level deeper repeating in each with alternate files as set in MakeMore();
Next edit if desired/needed would be deeper dirs ( with fewer files ) ???
Here's an updated MakeFiles.ino with latest "Mine" folder, for use after the simple case is working.
Code:
[ATTACH]26940._xfImport[/ATTACH]
It holds 3 the three '1,2,3' folders each with 1024 files named as sized with 1 byte increment from 400 bytes to 1423 bytes.
Code:
...
Directory of G:\mine\333
[.] [..] 400.txt 401.txt 402.txt 403.txt 404.txt 405.txt 406.txt 407.txt
...
1418.txt 1419.txt 1420.txt 1421.txt 1422.txt 1423.txt
1024 File(s) 933,376 bytes
Total Files Listed:
3072 File(s) 2,800,128 bytes
Those created with : MakeDataFiles( szStart[1], 1024, 400, 1 ); // folder name, # files, start size, inc in bytes to next file
Code:
char szStart[][8] = { "", "Mine" };
MakeData( szStart[0] );
MakeDataFiles( szStart[1], 1024, 400, 1 );
//MakeMore( );
MakeData() does the original three files ( now 244,500,756 in size )
Commented MakeMore() re-uses those first three '1,2,3' dirs and goes a level deeper repeating in each with alternate files as set in MakeMore();
Next edit if desired/needed would be deeper dirs ( with fewer files ) ???