foundeo / cfdocs

Repository for the cfdocs.org site.
https://cfdocs.org/
Other
184 stars 344 forks source link

fileExists function requires absolute path to be specified #1538

Open cfcoder opened 2 years ago

cfcoder commented 2 years ago

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.