[lib] fixed url bug in 'visitDir'