Get used to take a look at
jmeter.log file when JMeter is not doing what it is supposed to be doing.
The first obvious error is that you replace this line:
if(!(props.get("myList”).contains(path)))
with this one:
if(!(props.get("myList").contains(path)))
Also be aware that JMeter comes with
HTML Link Parser so crawling/spidering a website could be implemented way easier