Overview

System

static System :: {}

The System object contains methods for manipulating directories and files within the local filesystem. All paths are relative to the current directory.

Methods

Return Params Description
String path()

Returns the current path of the running script.

Array dir(String path = "")

Returns a string array of the files in the given path.

Number exists(String path)

Returns whether a particular folder of file exists.

Void mkdir(String path)

Creates a folder at the given path.

Void remove(String path)

Removes a folder or file at a given path.

Number size(String path)

Returns the size in bytes of a file.

Void copy(String origin, String path)

Copies a file or folder to a new path.

Void rename(String origin, String path)

Renames a file or folder to a new path.