fs

File system module.

createDirectory

Creates a directory.

(def (createDirectory name))
(type (createDirectory string) nil)

readDirectory

Reads a directory and lists up contents.

(def (readDirectory name))
(type (readDirectory string) [string])

readFile

Reads a file.

(def (readFile file))
(type (readFile string) string)

remove

Removes a file or directory.

(def (remove name))
(type (remove string) nil)

writeFile

Writes a file.

(def (writeFile file content . mode 0600))
(type (writeFile string string . number) nil)