getCanonicalPath trailing slash not guaranteed?
softwareCobbler opened this issue · comments
David Rogers commented
i don't see "if a directory a trailing slash is always used" on Adobe's official docs, and running the following on trycf.com/?engine=acf2018:
writeDump(getCanonicalPath(getDirectoryFromPath(getCurrentTemplatePath())))
returns /tmp
So I don't believe a trailing slash is always (ever?) appended to a directory name.
Pete Freitag commented
Thanks @softwareCobbler the docs have been updated to reflect this. Unfortunately ACF and Lucee behave differently here.