-
Javascript: path.join variable strings?
Having a problem here trying to combine two variables that are strings.
I have two variables:
var textFile = Folder.selectDialog();
var textName = “filename.txt”;textFile should have a string of the directory I selected from the dialog window, right? If so, then I’m assuming I could combine these two variables without having to write any “\” or “/” and just let the code put them in based on the OS, correct?
So why doesn’t path.join(textFile,textName) not do anything? It errors silently, so I can’t find out why its failing. Just nothing happens once it reaches this point in my code.