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.

Signature

Example

Exists
Input A file.
Output True if the file exists, false otherwise.

Signature

Example

Read
Input A file.
Output The content of the file as a string.

Signature

Example

Write
Input A file and a content.
Output True if the file was written with the content, false otherwise.

Signature

Example

Create
Input A file.
Output True if the file was created, false otherwise.

Signature

Example

Delete
Input A file.
Output True if the file was deleted, false otherwise.

Signature

Example

Copy
Input Two files.
Output True if the file was copied, false otherwise.

Signature

Example

Move
Input Two files.
Output True if the file was moved, false otherwise.

Signature

Example

Rename
Input A file and the new name.
Output True if the file was renamed, false otherwise.

Signature

Example

Length
Input A file.
Output The length of the file in bytes.

Signature

Example

Path
Input A file.
Output The path of the file as a string.

Signature

Example

Name
Input A file.
Output The name of the file as a string.

Signature

Example

Extension
Input A file.
Output The extension of the file as a string.

Signature

Example

Parent
Input A file.
Output The parent directory of the file.

Signature

Example