in reply to Directory location from scalar

I guess you are looking for this node - Pass variable as Directory

cheers

SK