flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 211: Create folder
Idiom # 211: Create folder
See
programming-idioms.org
:
Code
io.file.write.create_dir path
What are effects?
Running Example
ex211 is path := "path/to/dir" writer := io.file.write match writer.create_dir path unit => say "$path was created successfully" # logic in case of success err error => say err # error handling logic
What are effects?
next: NYI: Idiom # 212: Check if folder exists