The root path of this environment. Generally, this will be the folder which contains the nrelay project.
Creates a new directory in the root called temp
.
Creates a full path from the relative path provided.
The relative path to get.
Gets th
The relative path to the file.
Deletes the temp
directory.
Updates the object stored at the given path. This essentially
just calls readJSON
, then updates the object, then calls writeJSON
.
The object to use when updating.
The path of the file to update.
Writes the JSON object into the specified file.
The object to write.
The path of to the file to write to.
Generated using TypeDoc
The environment in which an nrelay project resides.
This class is the API between the various files that nrelay uses (such as the packets and acc config etc) and nrelay itself. Its goal is to provide a good abstraction for interacting with files and folders.