foundeo / cfdocs

Repository for the cfdocs.org site.

Home Page:https://cfdocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getCanonicalPath trailing slash not guaranteed?

softwareCobbler opened this issue · comments

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.

Thanks @softwareCobbler the docs have been updated to reflect this. Unfortunately ACF and Lucee behave differently here.