The information is available in the directory key block. Providing it to the user as soon as opendir() is done can save them costly code.