Question says it all.
Is there a limit of files a folder can have?
if not, will there be implications if a folder holds too many files? if so, how many is too many?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit:
Please see How many files in a directory is too many? — note dir_index, claims an upper-bound on files in directory. Then see Ext3 – handling large number of files in a directory and the bad performance when not using dir_index 🙂
Wiki: EXT3 seems to indicate it’s “unlimited”. One disadvantage of “too many” files is with programs that aren’t designed to work with with so many files — for instance a GUI that “locks up” while trying to load the directory contents.
Since the underlying storage is a B-tree variant, looking up a specific file name is generally fast. (This also covers issues with
readdir.)Happy coding.
For what it’s worth, proxies (like Squid), use multi-level directory structures by default. Then again, the amount of expected cache files is rather large compared to the number of say, documents, a normal user may have 🙂