05-21-2018, 03:35 PM
I don't see your problem - the code you have posted is giving the same string for both methods.
That would lead me to suspect that the problem is with your script not producing the expected output from the file-glob process.
That would lead me to suspect that the problem is with your script not producing the expected output from the file-glob process.