Code Block input issue

Need to use path in a list as input for the code block. It only allows one item from the family list to pass thru.
I really need the input from here. How do I use this in my code block?

If I use a code block for input it works fine.
image

A Directory Path node output works too. (no not need it this way)
image

this is because the path in first picture is a list, use Path[0] instead of path

Thanks, watched that tutorial last week and forgot all about it. Solved.