I just tried this:
<cfset fileLocation = "\\192.168.8.20\websites"> <cfdirectory action = "list" directory = "#fileLocation#" name = "pass_fail_files" > <cfdump var="#pass_fail_files#" expand="yes" label="files in pass-fail" >
In CF7, CF8 and Railo, and it works every time.
Please note: I updated your code, so it uses the directory attribute as directory = "#fileLocation #" , not directory = fileLocation .
Trying your code, I never received results, but also did not receive errors. Changing it to use double quotes and hashes did the trick since it stopped using it as a variable.
Hope this helps you.
source share