Built-in functions: Files & Folders
@mkdir <path>
Creates a new directory.
mkdir “Downloads”
@file_read <path>
Reads the contents of a file.
$abc: @file_read “abc.txt”
@echo $abc
> This is the texts that is in abc.txt
>
@file_write <path>, <content>
Writes content to a file (appends existing content).
@file_write “abc.txt” abc
$abc: @file_read “abc.txt”
@echo $abc
> This is the texts that is in abc.txt
> abc
@file_init <path>, <content>
Create file if not exists (also create parent folder recursively), or
Delete files content if it exists.
@file_init “./tmp_foleder/tmp.file”
@delete_path <path>
Deletes the specified file or directory.
@delete_path “abc.txt”
@file_exists <path>
Returns true if the file or directory exists.
@file_exists “abc.txt” // false