Just a thought ...
In reply to Re: Testing for readdir failure by Bloodnok in thread Testing for readdir failure by Bob Cook