Getting Started
Installation
Usage
Basic Syntax
Data Types
Expressions
Variables
Conditions
Commands
Arrays
Loops
Functions
Importing
Advanced Syntax
As Cast
Builtins
Type Condition
Compiler Flags
Standard Library
Documentation
Array
Date
Environment
FileSystem
HTTP
Math
Text
Contributing
How to
Guide
Compiler structure
Amber by Example
ShellCheck tester
Ubuntu Updater
Bot Detector
LSP Installer
change_owner
pub fun change_owner(user: Text, path: Text): Bool
Changes the owner of a file.
If the file doesn't exist, it returns false
create_dir
pub fun create_dir(path: Text): Null
Creates a directory with all parent directories as required.
create_symbolic_link
pub fun create_symbolic_link(origin: Text, destination: Text): Bool
Creates a symbolic link.
If the file doesn't exist, it returns a boolean and prints a message.
dir_exist
pub fun dir_exist(path)
Checks if a directory exists.
file_append
pub fun file_append(path, content)
Appends content to a file.
Doesn't check if the file exists.
file_exist
pub fun file_exist(path)
Checks if a file exists.
file_read
pub fun file_read(path)
Gets file contents from a path.
file_write
pub fun file_write(path, content)
Writes content to a file.
Doesn't check if the file exist
make_executable
pub fun make_executable(path: Text): Bool
Sets a file as executable.
If the file doesn't exist, it returns a boolean and prints a message.
Getting Started
Installation
Usage
Basic Syntax
Data Types
Expressions
Variables
Conditions
Commands
Arrays
Loops
Functions
Importing
Advanced Syntax
As Cast
Builtins
Type Condition
Compiler Flags
Standard Library
Documentation
Array
Date
Environment
FileSystem
HTTP
Math
Text
Contributing
How to
Guide
Compiler structure
Amber by Example
ShellCheck tester
Ubuntu Updater
Bot Detector
LSP Installer