[e-lang] File API taming

Kevin Reid kpreid at mac.com
Thu Mar 19 20:31:18 EDT 2009


On Mar 19, 2009, at 19:44, ihab.awad at gmail.com wrote:

> It also, however, means that patterns where I am given a file and I do
> different stuff based on whether it is called "*.exe" or "*.txt" can
> no longer work as simply as before. Who does these anyway, and
> are/were they ever a good idea?

Insofar as this is part of The Web, perhaps we should (pretend, if  
necessary) that files have MIME types, er, media types? Namely, have  
"media type" be a visible attribute of a file object, even if in  
implementation it results from its name extension inside the parent  
directory?

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>




More information about the e-lang mailing list