Because readdir requires a directory handle created with opendir perhaps?
In reply to Re: use FileHandle, readdir??? by GrandFather in thread use FileHandle, readdir??? by dbs