RE: [PHP] OK to have many files in one folder?
| From: | Jay Blanchard | Date: | Fri, 15 Jun 2007 19:59:09 +0000 |
| Subject: | RE: [PHP] OK to have many files in one folder? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257107@lists.php.net to get a copy of this message | ||
[snip]
I can easily break it up into 100 subdirectories, 2500 files in each,
would that be good insurance against problems?
[/snip]
As someone mentioned, directories are just a human convenience. Each
file will have an inode and is identified by an inode number in the file
system where it resides. Inodes store information on files such as user
and group ownership, access mode (read, write, execute permissions) and
type of file. There is a fixed number of inodes, which indicates the
maximum number of files each filesystem can hold. Hence, beware the
inode.