Skip to content

AmpyWrapper.Ampy

Finnomator edited this page Aug 3, 2023 · 2 revisions

Ampy Class

public class Ampy

Inheritance System.Object 🡒 Ampy

Methods
CreateDirectory(string, bool, bool) Create a directory on the board.
DownloadFile(string, string) Download a file from the board.
GetFileContent(string) Retrieve a file from the board.
ListDirectory(string, bool, bool) List contents of a directory on the board.
RemoveDirectory(string, bool) Forcefully remove a folder and all its children from the board.
RemoveFile(string) Remove a file from the board.
Reset(ResetMode) Perform soft reset/reboot of the board.
Run(string) Upload and run a script, wait for it to finish and return its output.
RunNoWait(string) Upload and run a script and do not wait for it to finish.
RunWithStreamOutput(string) Upload and run the code and receive output.
Upload(string, string) Put a file or folder and its contents on the board.

Clone this wiki locally