FWIW, not all file systems are trees
Showerthoughts
A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The most popular seem to be lighthearted clever little truths, hidden in daily life.
Here are some examples to inspire your own showerthoughts:
- Both “200” and “160” are 2 minutes in microwave math
- When you’re a kid, you don’t realize you’re also watching your mom and dad grow up.
- More dreams have been destroyed by alarm clocks than anything else
Rules
- All posts must be showerthoughts
- The entire showerthought must be in the title
- No politics
- If your topic is in a grey area, please phrase it to emphasize the fascinating aspects, not the dramatic aspects. You can do this by avoiding overly politicized terms such as "capitalism" and "communism". If you must make comparisons, you can say something is different without saying something is better/worse.
- A good place for politics is c/politicaldiscussion
- Posts must be original/unique
- Adhere to Lemmy's Code of Conduct and the TOS
If you made it this far, showerthoughts is accepting new mods. This community is generally tame so its not a lot of work, but having a few more mods would help reports get addressed a little sooner.
Whats it like to be a mod? Reports just show up as messages in your Lemmy inbox, and if a different mod has already addressed the report, the message goes away and you never worry about it.
Yes. Just throw all your files into the same place. Tree structures are so 90s.
Yes. I have completely forgotten about symbolic links while writing this
Is there a file system graph that's not a tree? Like a folder that contains a folder that contains itself?
symbolic links come to mind. there's soft and hard symbolic links. soft links you probably know, it's just one item in the tree that points to another. hard links are more intricate because you (the user) cannot easily differentiate them from an ordinary file / directory. it's basically hacking the file system to lead you in circles. this way, a directory can contain itself, which means that it's not a tree anymore.
Which is probably why Unix tends to disallow hardlinks to directories.
They're not physically impossible; on Mac, Time Machine even creates them (there's some kind of special thing it has to do to be allowed to do that, I think). The system design people just went "yeah, that's a bad idea".
Which is slightly impressive coming from the people who decided newlines in filenames were perfectly fine, on a system where it's very common practice to sling data around as a list of lines.
(I like the fact that literally every other character is allowed. Including spaces. Dealing with spaces isn't too terrible! It'd just be way easier to deal with things in a guaranteed correct fashion if newlines in filenames weren't allowed.)
-- Frost
Does object storage count? Those are usually identified by a single key; although I guess you could count cloud tenancy and buckets as “folders”
I wonder is you could do some fun stuff with symbolic links and Russell's paradox.
I've talked before about my old idea about a tag based file system but it is purely theoretical yet afaik. Basically it is an object database where it doesn't matter how you order the relevant tags. /a/b/file and /b/a/file are the same thing.
See the Wikipedia link in another comment about semantic filing systems seems like it is real.
Thanks!
Starting in around 2004, a new wave of implementations centered on manual tagging of files and folders.
Wow, this was about the time I came up with the idea. Then again it was the time of blogs and tag clouds, so...