Proposal for std.path replacement

Adam D. Ruppe destructionator at gmail.com
Mon Mar 7 07:07:59 PST 2011


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.


More information about the Digitalmars-d mailing list