fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 144: Check if file exists
Idiom # 144: Check if file exists
See
programming-idioms.org
:
Code
Code input
b := io.file.exists fp
What are effects?
Runnable Example
Code input
ex144 is fp := path.of "path/to/file" b := io.file.exists fp if b say "$fp exists" else say "$fp not found"
What are effects?
last changed: 2026-02-20
next: NYI: Idiom # 145: Print log line with datetime