
4 Jul
2008
4 Jul
'08
4:47 p.m.
Stefan Seefeld wrote:
Vladimir Prus wrote:
backup.tar.bz2
Here, you might want to look at either "top-level" file type -- ".bz2" here, or at everything after first dot -- ".tar.bz2", depending on what you want to do.
I think it's bad enough that we have inherited this bogus semantics of a file 'extension', so let's not add to that.
You suggest that each and every filesystem be modified to carry mime type with each file? That would be good, but unless that happens, lots of application will have to look at extension.
Users can always parse filenames with their own application-specific methods, if to them a name carries a particular meaning.
As it happens, application-specific methods is very often just looking at file extension. - Volodya