Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileExists function requires absolute path to be specified #1538

Open
cfcoder opened this issue Oct 3, 2022 · 0 comments
Open

fileExists function requires absolute path to be specified #1538

cfcoder opened this issue Oct 3, 2022 · 0 comments

Comments

@cfcoder
Copy link

cfcoder commented Oct 3, 2022

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.
Xcreen added a commit to Xcreen/cfdocs that referenced this issue Oct 11, 2022
- Added expandPath to example
- Not runnable, because fileExists is not allowed on trycf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant