The function EOD serves for End Of Directory checking. The argument to this function is the directory number used in the command OPEN DIRECTORY. The result of the function is TRUE if there are no more files to be returned by the function NextFile and FALSE otherwise.