ExpandPath() : "/" vs "//"
I just discovered something rather curious that was driving me crazy. I was trying to use cfdirectory to obtain the files on the webroot directory using a variable named "path", which was supposedly set to contain the value "/" for the relative mapping to the web root. However cfdirectory was constantly giving me the contents of its own root directory instead of the webserver's root directory --really weird stuff!
After some inspecting I realized that my path variable contained the value "//" instead of just "/". I don't remember seeing it in any documentation but apparently, for the ExpandPath() function, the string "//" is sort of a shorthand for the ColdFusion's own root directory, while the string "/" is used (as expected) for the web server's root.
Just something to keep in mind!
Ahh the marvels of being a Funky Coder