Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
Read reads from a given file. @params path (String) - path to file to read from. @returns data (Binary) - the read file in binary format.
func RegisterLib ¶
RegisterLib register `FS` namespace functions.
func Write ¶
Write writes the given data into the file. @params path (String) - path to file to write into. @params data (Binary) - data to write. @params params (Object) optional - additional parameters:
- mode (String):
- x - Exclusive: returns an error if the file exist. It can be combined with other modes
- a - Append: will create a file if the specified file does not exist
- w - Write (Default): will create a file if the specified file does not exist
@returns None
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.