Linux directory limits

Is anyone aware of a limit on the number of files a Linux directory can hold? I found information on file size limits, but nothing about a maximum file count.

I was testing an image-creation routine, it always stops working (can’t save the file) when there are about 640,000 files in the directory. The size of each file is about 500 bytes.

I don’t think this question can be answered without knowing exactly which file-system was in use on the particular Linux installation.

However, if I had an application that created 640K files in the one directory, I would definitely be re-thinking the way I was doing things.


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEMONEY[/color] ( Click for promo code details )