am regularly amazed that we pretend folders are the right way to organise files. They’re entirely arbitrary. Every competent file system ignores them to its best ability. Why can’t I have a file in two folders? Why does one have to be a “reference”? Why can’t I filter for files that exist in 3 folders with X extension?

We’ve been played for absolute fools.

  • Sims@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    6 minutes ago

    Not sure why people defend an archaic organization form here - reflex ?

    You are perfectly right that files and folders are simplistic, and should naturally adapt to the pov that are more information rich/valuable. Hoomans tend to collapse a high-dimensional structures to 0D to 3D, so we can manage the information. In that sense, a std hierarchy is only ONE pov over a ton of pov over the same content. A standard hierarchy is only a low 2D dimension structure that are our first attempt at organizing information. It’s not wrong - just imprecise af.

    Anyway, hardlinks are a small step up, can build wild static structures (like a oneshot filesystem in Guix), but is cumbersome to control in multi-dimensional information structures. Likely not what you want, but look into fuse file systems if you want to move on to a dynamic file system hierarchy. An interesting one is a tag file system. It turns a standard limited hierarchy into a much more dynamic file-structure where a file can - and does - belong to a bunch of tags - file type, size, group, comments, whatnot. There are many many fuse fs that can convert anything into a better structured file system. Tagging is a step up from a dumb 2D hierarchy, but maybe a graph file system is the ultimate freeform dynamic filesystem that can present all the pov’s we could possible need ?

    Go for it.

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    3 hours ago

    Why can’t I have a file in two folders? Why does one have to be a “reference”?

    You can do this… Hard links. Neither file is more “canonical” than the other.

  • sbird@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    8 hours ago

    No no, you see, most people like organisation. Also, it’s intuitive as it is analagous to actual folders that store actual files. It would be kind of weird if you could store a file in multiple folders. What would that even mean? If you delete a file from one folder, is it deleted in the other? Folders aren’t meant to be labels (labels are labels), they’re locations. Your toothbrush is in the bathroom, pots and pans in the kitchen, etc.

  • Dave.@aussie.zone
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    10 hours ago

    I know, instead of folders, we could use “shelves” and the Dewey Decimal System.

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    31
    ·
    15 hours ago

    At my company we use M-Files, which is a document storage system that prides itself in not using folders. “No more searching for the file in thousands of folders”, they proclaim. It’s all a huge dump of files. To find files you need to tag them when checking them in. Later you search via these tags.

    Guess what happens: All documents are either untagged or they’re tagged with wildly unhelpful tags. So in reality you can’t find shit. You can’t even make a sensible guess as to where a file might be and check the 3–5 folders that come to mind, because there are no folders.

    M-Files is a black hole for information. No, scratch that. Even black holes radiate out the information they receive. M-Files doesn’t.

    • bitcrafter@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      2 hours ago

      No, scratch that. Even black holes radiate out the information they receive. M-Files doesn’t.

      That is an amazing zinger!

    • GreenCrunch@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 hours ago

      sounds like the SharePoint one of my previous employers used. Now, SharePoint supports folders! but, using it through Teams, like everyone did, with tens of thousands of files haphazardly vomited onto it randomly, meant that Teams literally can’t load the file list fast enough. So, again all information goes there to die.

      It was not nice.

    • vrek@programming.dev
      link
      fedilink
      English
      arrow-up
      9
      ·
      14 hours ago

      In my last company we used a system called windchill. Technically they had folders. Previously we used a different system. But when we switched to windchill no one had time to actually sort and organize the tens of thousands of documents. As a result everything just got dropped in the root folder.

      To make it worse there was no enforced naming scheme… Plan for… Thing’s plan… Protocol for execution of thing… Ip of thing… Thing’s up… Protocol of thing… Plan of thing… All valid. And in 5 years when your 3rd replacement is trying to find it… Alcoholism is a serious disorder

  • frongt@lemmy.zip
    link
    fedilink
    arrow-up
    46
    ·
    17 hours ago

    Why can’t I have a file in two folders? Why does one have to be a “reference”?

    All files are references. But you have always been able to put a reference to one file in multiple folders by using hard links.

    Why can’t I filter for files that exist in 3 folders with X extension?

    find dir1 dir2 dir3 -name '*.x' -type f

    • Eldritch@piefed.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      16 hours ago

      Yep. Even NT was doing it for decades. Though it was pretty discouraged on the Microsoft side.

  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    28
    ·
    edit-2
    16 hours ago

    Tree-like hierarchy is used all over the place, including computers, because it’s a useful and easily understood way to organize information.

    Why can’t I have a file in two folders?

    You can. man ln

    Why does one have to be a “reference”?

    I don’t know what you mean by that. If you mean a link target, it doesn’t. A file is canonically identified by its inode (or equivalent), not where it appears in a directory tree.

    Why can’t I filter for files that exist in 3 folders with X extension?

    You can. Common tools like find can do this, as can some file managers like Dolphin, and various indexing tools.

    If you mean to ask why that sort of indexing/filtering isn’t built in to most filesystems, consider compatibility: Practically no software exists that would know how to take advantage of it. Also consider what it would mean for a filesystem to filter by files that exist in 3 folders if that filesystem doesn’t use folders. :)

    (BTW, that “extension” concept doesn’t exist in most modern filesystems. Any .xyz suffix you see in the ones that don’t come from Microsoft is just part of the file name, with no special meaning. Some programs try to guess at content type based on common file name suffixes, but that is unreliable and has nothing to do with the fs.)

    Since you’re interested in this topic, though, maybe have a look at different approaches to data storage that have been tried over the years. To get you started:

    https://en.wikipedia.org/wiki/Object_storage

    https://en.wikipedia.org/wiki/File_system#Database_file_systems

  • DoctorPress@lemmy.zip
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    17 hours ago

    I disagree, folder system means any programming language that can handle files don’t need any special libraries for system access.

    Have you considered how godsend is to generate random numbers with just reading /dev/random however you want?

  • Sundray@lemmus.org
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    17 hours ago

    Wait, I’ve got it: what if we put every file in one folder, and then hard-link the files we need higgildy-piggildy all over the place!

    We can call it WinSxS!

  • adhocfungus@midwest.social
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    17 hours ago

    I can’t say I disagree, but I am ignorant of what the alternatives would be. A tagged database of files so you can query by tag, filename, or such?