nsDirectoryIterator&    operator ++(int) { return ++(*this); }
nsDirectoryIterator& nsDirectoryIterator::operator ++ ()  { mExists = PR_FALSE; if (!mDir) return *this; char* dot    = "."; char* dotdot = ".."; struct dirent* entry = readdir(mDir); if (entry && strcmp(entry->d_name, dot) == 0) entry = readdir(mDir); if (entry && strcmp(entry->d_name, dotdot) == 0) entry = readdir(mDir); if (entry) { mExists = PR_TRUE; mCurrent.SetLeafName(entry->d_name); } return *this; }
	    nsDirectoryIterator&    operator ++(int) { return ++(*this); } // post-increment.