At 4:03 PM +0200 8/9/01, Carlos Costa Portela wrote:
>On Thu, 9 Aug 2001, Paul Bayley wrote:
>
>> Implementation in source code:
>> There is no cost in fetching the file type so long you do it
>> while fetching the filename (where is this done?). If you try to fetch
>
> IMHO, it might be too costly to check file types. What's your
>opinion?
>
The type information is directly associated with each file like it's creation date or
file permissions. It's not in a separate file, database, or registry. It's cached like
all other metadata. The API allows me to fetch only what I want, namely the filename
and type (and whatever else Apache wants to know). Just pass one function the inode
and you have it. It's only 32bits.
It would be no more costly than a filename which was four characters longer.