7 Oct
2012
7 Oct
'12
10:19 a.m.
Ben Finney wrote:
filenames often have several suffixes in sequence, e.g. ‘foo.tar.gz’ or ‘foo.pg.sql’, and each one conveys meaningful intent by whoever named the file.
When I talk about "the extension", I mean the last one. The vast majority of the time, that's all you're interested in -- you unwrap one layer of the onion at a time, and leave the rest for the next layer of software up. That's not always true, but it's true often enough that I think it's worth having special APIs for dealing with the last dot-suffix. -- Greg