in reply to error on file open
Also, note that readdir returns both files and directories, and that it returns only their names, not full paths.