FLAT
FLAT
Couper
Sevenval Technologies
Docker Image
Github
master
FLAT
Cookbook
Reference
Functions
xml-parse()
urldecode(), url-decode()
ends-with()
join()
split()
content()
array()
json-to-csv()
decrypt-xml()
json-stringify()
replace()
base64-encode()
verify-signature()
matches()
body()
ldap-query()
trim()
calc-signature()
array-reverse()
sort()
file-exists()
decrypt()
get-log()
jwt-encode()
apply-codecs()
base64-decode()
uuid3() and uuid4()
lookup()
json-to-xml()
fit-log()
toupper()
fit-document()
tolower()
has-class()
encrypt()
urlencode(), url-encode()
unixtime()
fit-serialize()
xml-to-json()
jwt-decode()
json-doc()
html-parse()
verify-xmldsig()
ldap-lookup()
capitalize-first()
md5()
json-parse()
Flow Actions
OpenAPI / Swagger Integration
Templating
Variables
Flow
Configuration
Testing
flat CLI
Debugging
Administration
Tutorial
Changelog
Powered by GitBook

file-exists()

boolean file-exists(string path)

The file-exists function accepts exactly one argument that is converted to a string. The argument must be a fit://-URL, otherwise an empty result is returned and an error will be raised.

The function returns true if the URL references an existing file or directory, false otherwise.

Examples

  • file-exists('fit://site/path/to/file')

  • file-exists('fit://site/path/to/directory/')

  • file-exists('fit://request/content')

Previous
sort()
Next
decrypt()
Last updated 1 year ago
Edit on GitHub