Quote:
And how should my code know how to skip it?
I've said it before, but it looks like I have to say it again.
Before you can work with ext2fs at a low level you have to understand the filesystem, its structures, and how they are used. And you have to at the very least read that document that I linked to describing the ext2 filesystem. It is evident that you have not yet reached that stage. I suggested before a way that you could work towards that level of enlightenment; you rejected my suggestion then, so there seems to be little point in repeating it now.
There is no easy path to OS development, and asking someone else to help you every time you hit something that you don't understand is not the magical path.
But, to answer your question: your code knows how to skip it because it reads the directory from the disk in the way it was designed to be read.