F
Franc Zabkar
Guest
Re: File size/Number of file limits
On Fri, 26 Oct 2007 02:05:23 -0400, 98 Guy <98@Guy.com> put finger to
keyboard and composed:
>I performed a series of serial file generations to see how many files
>could be created in a subdirectory while changing the length of the
>file name.
>
>The following table shows the file-name length and the corresponding
>number of files that could be created before this eror was generated:
>
> The directory or file cannot be created
>
> 6.0 - 65,533
> 6.3 - 32,767
> 12.3 - 21,845
> 15.3 - 21,845
> 17.3 - 21,845
> 23.3 - 16,384
> 47.3 - 13,107
> 63.3 - 9,362
> 96.3 - 7,282
>
>So in the first case, with a filename composed of 6 characters (and no
>suffix) I was able to create 65,533 files. In the second case, the
>filename was composed of 6-characters.3-characters, and the directory
>would only hold 32,767 of those files. So as the filename length
>increases, there is a decrease in the number of possible files.
>
>According to the OP:
>
>> The target 'contracts' directory is 599MB and contains 16135
>> objects. We are appending a few hundred files. We get the
>> following error:
>> 'The directory or file cannot be created.
>
>For the above to happen, the existing 16,135 files would have to have
>long file names (about 20 characters, more likely 23 characters,
>possibly slightly more).
I created a file named "dummy" and then copied it to several files on
a floppy diskette as follows.
==================================================================
C:\WIN98SE>echo blah > dummy
C:\WIN98SE>for %i in (7 78 789 7890 78901 789012 7890123) do copy
dummy a:\01234567890123456%i.txt
C:\WIN98SE>dir a:
012345~3 TXT 7 10-27-07 8:49a 012345678901234567.txt
012345~4 TXT 7 10-27-07 8:49a 0123456789012345678.txt
012345~5 TXT 7 10-27-07 8:49a 01234567890123456789.txt
012345~6 TXT 7 10-27-07 8:49a 012345678901234567890.txt
012345~7 TXT 7 10-27-07 8:49a 0123456789012345678901.txt
012345~8 TXT 7 10-27-07 8:49a 01234567890123456789012.txt
012345~9 TXT 7 10-27-07 8:49a 012345678901234567890123.txt
==================================================================
I then dumped the directory structure using Debug. It appears that
there are 3 entries for filenames of 21 characters, and 4 entries for
22 and 23 characters.
=====================================================================
4A0 42 33 00 34 00 35 00 36-00 37 00 0F 00 7B 38 00 B3.4.5.6.7...{8.
4B0 39 00 30 00 31 00 2E 00-74 00 00 00 78 00 74 00 9.0.1...t...x.t.
4C0 01 30 00 31 00 32 00 33-00 34 00 0F 00 7B 35 00 .0.1.2.3.4...{5.
4D0 36 00 37 00 38 00 39 00-30 00 00 00 31 00 32 00 6.7.8.9.0...1.2.
4E0 30 31 32 33 34 35 7E 37-54 58 54 20 00 94 53 46 012345~7TXT ..SF
4F0 5B 37 5B 37 00 00 27 46-5B 37 11 00 07 00 00 00 [7[7..'F[7......
500 43 74 00 00 00 FF FF FF-FF FF FF 0F 00 1B FF FF Ct..............
510 FF FF FF FF FF FF FF FF-FF FF 00 00 FF FF FF FF ................
520 02 33 00 34 00 35 00 36-00 37 00 0F 00 1B 38 00 .3.4.5.6.7....8.
530 39 00 30 00 31 00 32 00-2E 00 00 00 74 00 78 00 9.0.1.2.....t.x.
540 01 30 00 31 00 32 00 33-00 34 00 0F 00 1B 35 00 .0.1.2.3.4....5.
550 36 00 37 00 38 00 39 00-30 00 00 00 31 00 32 00 6.7.8.9.0...1.2.
560 30 31 32 33 34 35 7E 38-54 58 54 20 00 1D 54 46 012345~8TXT ..TF
570 5B 37 5B 37 00 00 27 46-5B 37 12 00 07 00 00 00 [7[7..'F[7......
580 43 78 00 74 00 00 00 FF-FF FF FF 0F 00 3B FF FF Cx.t.........;..
590 FF FF FF FF FF FF FF FF-FF FF 00 00 FF FF FF FF ................
5A0 02 33 00 34 00 35 00 36-00 37 00 0F 00 3B 38 00 .3.4.5.6.7...;8.
5B0 39 00 30 00 31 00 32 00-33 00 00 00 2E 00 74 00 9.0.1.2.3.....t.
5C0 01 30 00 31 00 32 00 33-00 34 00 0F 00 3B 35 00 .0.1.2.3.4...;5.
5D0 36 00 37 00 38 00 39 00-30 00 00 00 31 00 32 00 6.7.8.9.0...1.2.
5E0 30 31 32 33 34 35 7E 39-54 58 54 20 00 6E 54 46 012345~9TXT .nTF
5F0 5B 37 5B 37 00 00 27 46-5B 37 13 00 07 00 00 00 [7[7..'F[7......
=====================================================================
- Franc Zabkar
--
Please remove one 'i' from my address when replying by email.
On Fri, 26 Oct 2007 02:05:23 -0400, 98 Guy <98@Guy.com> put finger to
keyboard and composed:
>I performed a series of serial file generations to see how many files
>could be created in a subdirectory while changing the length of the
>file name.
>
>The following table shows the file-name length and the corresponding
>number of files that could be created before this eror was generated:
>
> The directory or file cannot be created
>
> 6.0 - 65,533
> 6.3 - 32,767
> 12.3 - 21,845
> 15.3 - 21,845
> 17.3 - 21,845
> 23.3 - 16,384
> 47.3 - 13,107
> 63.3 - 9,362
> 96.3 - 7,282
>
>So in the first case, with a filename composed of 6 characters (and no
>suffix) I was able to create 65,533 files. In the second case, the
>filename was composed of 6-characters.3-characters, and the directory
>would only hold 32,767 of those files. So as the filename length
>increases, there is a decrease in the number of possible files.
>
>According to the OP:
>
>> The target 'contracts' directory is 599MB and contains 16135
>> objects. We are appending a few hundred files. We get the
>> following error:
>> 'The directory or file cannot be created.
>
>For the above to happen, the existing 16,135 files would have to have
>long file names (about 20 characters, more likely 23 characters,
>possibly slightly more).
I created a file named "dummy" and then copied it to several files on
a floppy diskette as follows.
==================================================================
C:\WIN98SE>echo blah > dummy
C:\WIN98SE>for %i in (7 78 789 7890 78901 789012 7890123) do copy
dummy a:\01234567890123456%i.txt
C:\WIN98SE>dir a:
012345~3 TXT 7 10-27-07 8:49a 012345678901234567.txt
012345~4 TXT 7 10-27-07 8:49a 0123456789012345678.txt
012345~5 TXT 7 10-27-07 8:49a 01234567890123456789.txt
012345~6 TXT 7 10-27-07 8:49a 012345678901234567890.txt
012345~7 TXT 7 10-27-07 8:49a 0123456789012345678901.txt
012345~8 TXT 7 10-27-07 8:49a 01234567890123456789012.txt
012345~9 TXT 7 10-27-07 8:49a 012345678901234567890123.txt
==================================================================
I then dumped the directory structure using Debug. It appears that
there are 3 entries for filenames of 21 characters, and 4 entries for
22 and 23 characters.
=====================================================================
4A0 42 33 00 34 00 35 00 36-00 37 00 0F 00 7B 38 00 B3.4.5.6.7...{8.
4B0 39 00 30 00 31 00 2E 00-74 00 00 00 78 00 74 00 9.0.1...t...x.t.
4C0 01 30 00 31 00 32 00 33-00 34 00 0F 00 7B 35 00 .0.1.2.3.4...{5.
4D0 36 00 37 00 38 00 39 00-30 00 00 00 31 00 32 00 6.7.8.9.0...1.2.
4E0 30 31 32 33 34 35 7E 37-54 58 54 20 00 94 53 46 012345~7TXT ..SF
4F0 5B 37 5B 37 00 00 27 46-5B 37 11 00 07 00 00 00 [7[7..'F[7......
500 43 74 00 00 00 FF FF FF-FF FF FF 0F 00 1B FF FF Ct..............
510 FF FF FF FF FF FF FF FF-FF FF 00 00 FF FF FF FF ................
520 02 33 00 34 00 35 00 36-00 37 00 0F 00 1B 38 00 .3.4.5.6.7....8.
530 39 00 30 00 31 00 32 00-2E 00 00 00 74 00 78 00 9.0.1.2.....t.x.
540 01 30 00 31 00 32 00 33-00 34 00 0F 00 1B 35 00 .0.1.2.3.4....5.
550 36 00 37 00 38 00 39 00-30 00 00 00 31 00 32 00 6.7.8.9.0...1.2.
560 30 31 32 33 34 35 7E 38-54 58 54 20 00 1D 54 46 012345~8TXT ..TF
570 5B 37 5B 37 00 00 27 46-5B 37 12 00 07 00 00 00 [7[7..'F[7......
580 43 78 00 74 00 00 00 FF-FF FF FF 0F 00 3B FF FF Cx.t.........;..
590 FF FF FF FF FF FF FF FF-FF FF 00 00 FF FF FF FF ................
5A0 02 33 00 34 00 35 00 36-00 37 00 0F 00 3B 38 00 .3.4.5.6.7...;8.
5B0 39 00 30 00 31 00 32 00-33 00 00 00 2E 00 74 00 9.0.1.2.3.....t.
5C0 01 30 00 31 00 32 00 33-00 34 00 0F 00 3B 35 00 .0.1.2.3.4...;5.
5D0 36 00 37 00 38 00 39 00-30 00 00 00 31 00 32 00 6.7.8.9.0...1.2.
5E0 30 31 32 33 34 35 7E 39-54 58 54 20 00 6E 54 46 012345~9TXT .nTF
5F0 5B 37 5B 37 00 00 27 46-5B 37 13 00 07 00 00 00 [7[7..'F[7......
=====================================================================
- Franc Zabkar
--
Please remove one 'i' from my address when replying by email.