When is a directory too big, too full?

Posted on 2004-11-21
Last Modified: 2008-03-06
I have a design question.  I have a search that returns info and loads a varriable amount of jpg's and .txt files.  For different catagories I have seperated the jpg's and txt files into seperate directories.

i.e.  jpg_10  and txt_10,  jpg_20  and txt_20

then I use a varriable to find the correct directory

this has limited other things I am trying to do, because of constantly changing paths.


Is there an advantage or disadvantage to spliting up my jps's into seperate directories.  If I combine them I could have 10,000 files in one directory.  If I keep seperate $2,000 max in a directory.

Question by:rwhubbard996
    1 Comment
    LVL 55

    Accepted Solution

    You could gain a little performance by dividing your files into several directories, also you gain in order and manual handling, but the answer is hard because it is highly Operating System/File System dependent.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now