Proposal for std.path replacement

Nick Sabalausky a at a.a
Mon Mar 7 14:57:06 PST 2011


"Adam D. Ruppe" <destructionator at gmail.com> wrote in message 
news:il2sce$11lv$1 at digitalmars.com...
> spir wrote:
>> I would definitely love an inter-OS standard for storing the
>> MIME-type in every file's first byte.
>
> A better solution would be to store it in the filename. Might
> want more detail than one byte could allow too, so perhaps allowing
> three or four bytes would be a good answer.
>
> With the type in the filename, you can determine it easily from
> a directory listing without needing to open every individual file.
> This would make a big difference in listing speed on a slow filesystem
> and by using the name, it is compatible with all systems too.

I agree, and have to say: Very well put :)





More information about the Digitalmars-d mailing list