Reference
File
Note: File functions are not implemented on the web platform.
From path
| Input | A string. |
| Output | A file pointing to the given path. |
Exists
| Input | A file. |
| Output | True if the file exists, false otherwise. |
Read
| Input | A file. |
| Output | The content of the file as a string. |
Write
| Input | A file and a content. |
| Output | True if the file was written with the content, false otherwise. |
Create
| Input | A file. |
| Output | True if the file was created, false otherwise. |
Delete
| Input | A file. |
| Output | True if the file was deleted, false otherwise. |
Copy
| Input | Two files. |
| Output | True if the file was copied, false otherwise. |
Move
| Input | Two files. |
| Output | True if the file was moved, false otherwise. |
Rename
| Input | A file and the new name. |
| Output | True if the file was renamed, false otherwise. |
Length
| Input | A file. |
| Output | The length of the file in bytes. |
Path
| Input | A file. |
| Output | The path of the file as a string. |
Name
| Input | A file. |
| Output | The name of the file as a string. |
Extension
| Input | A file. |
| Output | The extension of the file as a string. |
Parent
| Input | A file. |
| Output | The parent directory of the file. |