View Full Version : how many folders can apache hold

08-26-2006, 03:04 PM
how many folders can apache hold in one directory ? Im useing linux.

It didnt occur to me untill now, im writeing a script that uploads files and gives a user a link to download it, and each file is stored in its own folder with a unique ID. But now its occured to me that this may become a problem in the future.

Anyone got any ideas ?

08-26-2006, 11:23 PM
store files on db

08-27-2006, 12:34 AM
wait for it to become an issue, it's not going to be any time soon, and you'll probably be doing something different then anyway.

08-27-2006, 01:43 PM
well I dont want to have to write a script then have to completely rewrite another that can work around my old one.

I hink I came up with a solution anyhow, Im putting the files in a folder depending on what month it is and each file is going to be renamed to a 20 character random string,

08-27-2006, 05:34 PM
while [ $X -le 200000000 ]
mkdir $X

try this and see how many did he handle.
Just dont expect too see all in the index

08-28-2006, 12:07 AM
lol, suppose that is a good way of finding out. I read it somewhere before, but cant seem to find it now.

Thanks anyway