isHarmlessPathname
if (link && target && isHarmlessPathname(link)) {
if (file && isHarmlessPathname(file))
if (dir && isHarmlessPathname(dir))