[lib] added 'visitDir' in DirentView