Maximum limit of files per directory

directoryfiles

If I were talking about a web hosting server, would there be a maximum limit of files per directory?

Best Answer

It comes down to filesystem in most cases:

FAT-16: 512

FAT-32: 65,534

NTFS has a maximum number of files per volume, not directory: 4,294,967,295 (via Satanicpuppy)

ext2: 31,998

ext3 originally had the same limit at ext2 (31,998). However, if your distro supports dir_index I believe the only limit is your machine's ram with deteriorating performance as the directory grows beyond 100k files.