in reply to Re: Is there a name for this directory format where 'foo.jpg' is in '/img/f/o/'?
in thread Is there a name for this directory format where 'foo.jpg' is in '/img/f/o/'?

I don't know if you're joking, but ChatGPT has proven absolutely terrible at answering factual questions.

  • Comment on Re^2: Is there a name for this directory format where 'foo.jpg' is in '/img/f/o/'?

Replies are listed 'Best First'.
Re^3: Is there a name for this directory format where 'foo.jpg' is in '/img/f/o/'?
by Bod (Parson) on Mar 05, 2023 at 00:04 UTC
    I don't know if you're joking

    No I wasn't joking...

    But equally, I wasn't suggesting that you use ChatGPT to answer the questions. It is great for getting from "I don't know what to put into Google" to having enough idea to get some meaningful search results from Google. It's part of the process, not the complete solution.

      The link you provided in your earlier post goes to a login page. I don't have an account nor do I to wish to create one.

      Perhaps you could provide an example or two of ChatGPT input and output (with respect to finding search terms).

      — Ken

        Well - it took a little asking but it come up with "subdirectory tree" or "subdirectory hierarchy". I'm not sure these are right and certainly don't correspond to kcott's "trie" but they do give a better term for Google...

        Here's the conversation with my input in italics


        Is there a name for this sort of directory structure where the directories are named after parts of the filename? Like this /var/images/f/o/foo.jpg

        Yes, this type of directory structure is often referred to as a "hashed directory structure" or "hash-based directory structure". The directory names are usually created by applying a hash function to some part of the file name or contents, such as the first few characters or a checksum, to ensure that files are evenly distributed across the directories and to avoid having too many files in any one directory. This type of directory structure is commonly used in large-scale systems that need to store and manage a large number of files efficiently, such as content delivery networks, file-sharing platforms, and database systems.

        That is not what I mean. In this structure there is no hashing. The first letter ('f' in the example) is the first directory then the second letter 'o' is the next level and so on. Like this - /f/o/foo.jpg

        My apologies for misunderstanding your question. The directory structure you described is known as a "subdirectory tree" or "subdirectory hierarchy". It is a way of organizing files into a hierarchical structure by breaking down the filename into its constituent parts and using them to create nested directories. This type of structure can be useful for organizing large collections of files, as it allows for easy navigation and retrieval of files based on their names or other attributes. It is also commonly used in web applications, where files are often organized by user or content type.

      Did you try it?