foundeo / cfdocs

Repository for the cfdocs.org site.

Home Page:https://cfdocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fileExists function requires absolute path to be specified

cfcoder opened this issue · comments

Currently, the docs do not mention that the path you specify inside the function arguments must be an absolute path. The example shown specifies a webroot relative path which will always return "NO" for the returned value.

  1. Improve the documentation to state absolute path required.
  2. Fix the example to show how an absolute path being used or include the expandPath() wrapper around the relative path.