Re: File API taming
Kevin Reid <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On Mar 19, 2009, at 19:44, [email protected] 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/>