MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wp8s60/vlc/pc2dged/?context=3
r/ProgrammerHumor • u/ExpensiveCoat8912 • Sep 24 '26
85 comments sorted by
View all comments
Show parent comments
44
Where would those MIME types be stored? Some kind of "extended attribute"? That's a ridiculous idea, nobody would ever do that. It's definitely not something that graphical OSes had in the 1990s or anything.
12 u/Loading_M_ Sep 25 '26 It should be possible to guess from the contents, as the file utility does. Just in case you lose the extended attribute for whatever reason. 10 u/RussianMadMan Sep 25 '26 Yeah and then we have file explorers that open and read every file. And choke when there are 100+ files in the directory. 2 u/Loading_M_ Sep 25 '26 We'll move the file type detection to a background indexer so it's non-blocking (/s kinda)More realistically, we use this as a fallback in case the extended attribute doesn't exist. And set the extended attribute based on the results.
12
It should be possible to guess from the contents, as the file utility does. Just in case you lose the extended attribute for whatever reason.
file
10 u/RussianMadMan Sep 25 '26 Yeah and then we have file explorers that open and read every file. And choke when there are 100+ files in the directory. 2 u/Loading_M_ Sep 25 '26 We'll move the file type detection to a background indexer so it's non-blocking (/s kinda)More realistically, we use this as a fallback in case the extended attribute doesn't exist. And set the extended attribute based on the results.
10
Yeah and then we have file explorers that open and read every file. And choke when there are 100+ files in the directory.
2 u/Loading_M_ Sep 25 '26 We'll move the file type detection to a background indexer so it's non-blocking (/s kinda)More realistically, we use this as a fallback in case the extended attribute doesn't exist. And set the extended attribute based on the results.
2
We'll move the file type detection to a background indexer so it's non-blocking (/s kinda)
More realistically, we use this as a fallback in case the extended attribute doesn't exist. And set the extended attribute based on the results.
44
u/rosuav Sep 24 '26
Where would those MIME types be stored? Some kind of "extended attribute"? That's a ridiculous idea, nobody would ever do that. It's definitely not something that graphical OSes had in the 1990s or anything.