ensure the dirents is uptodate when entering a dir